Skip to main content

dirty_state

Function dirty_state 

Source
pub fn dirty_state(worktree: &Path) -> Result<DirtyState>
Expand description

Count the entries of git status --porcelain -z for a work tree. Untracked files are counted as files (--untracked-files=all), because a directory of untracked work is the thing a move must not lose and “1 untracked” for a directory of forty files would understate it.