Skip to main content

parse_status

Function parse_status 

Source
pub fn parse_status(output: &str) -> Vec<FileStatus>
Expand description

Parse git status --porcelain (v1) output into one FileStatus per path.

Each line is XY <path>, where X is the index status and Y the working-tree status (?? for untracked). Rename lines (R old -> new) are recorded under the new path.