Skip to main content

read_tree_discard

Function read_tree_discard 

Source
pub fn read_tree_discard(region: &[OsString]) -> Discard
Expand description

What: Read a git read-tree region. Why: --reset replaces the index and, with -u, the worktree, dropping every unmerged and local entry. --res is the shortest prefix that --recurse-submodules does not share.

In TS you’d write (pseudocode):

function readTreeDiscard(region: string[]): Discard;