Git utilities
Git porcelain status parser
Decode status columns, renames and quoted UTF-8 paths from porcelain v1.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Read the index/worktree columns and decode C-style quoted paths. Keep untracked, ignored and unmerged entries separate.
The example has three entries: one worktree change, one index rename and one untracked file.
Limits
Line-based v1 only, without -z or branch headers. Ambiguous unquoted rename arrows are rejected. Escaped filenames must be valid UTF-8; no repository is accessed.