pub fn reset_changes_worktree(region: &ResetRegion) -> boolExpand 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;