Skip to main content

reset_changes_worktree

Function reset_changes_worktree 

Source
pub fn reset_changes_worktree(region: &ResetRegion) -> bool
Expand description

What: Whether the reset can rewrite worktree files. &ResetRegion borrows the facts. Why: Only these three modes set opts.update, which lets Git write worktree files (reset_index, builtin/reset.c:79-95).

In TS you’d write (pseudocode):

function resetChangesWorktree(region: ResetRegion): boolean;