Skip to main content

parse_name_status_entries

Function parse_name_status_entries 

Source
pub(super) fn parse_name_status_entries(raw: &str) -> Vec<NameStatusEntry>
Expand description

Parse git diff --name-status output into entries.

Status codes covered: M (modified), A (added), D (deleted), R (renamed), C (copied), T (typechange - symlink/submodule), U (unmerged - mid-merge-conflict). Unknown codes (X, B, or anything else git might emit in future) fire a WARN log and drop the entry so an operator can spot the gap.