Skip to main content

without_all_flag

Function without_all_flag 

Source
pub fn without_all_flag(commit_args: &[String]) -> Vec<String>
Expand description

What: Removes -a/--all from the commit region, keeping clustered short options. Why: The private index already holds every tracked change, so native commit must not restage worktree bytes.

In TS you’d write (pseudocode):

withoutAllFlag(['-am', 'x']); // ['-m', 'x']