SIGN IN SIGN UP

fish_git_prompt: skip rename/copy source paths in status parsing

When git status --porcelain -z reports renames or copies, it outputs
the source filename as a separate NUL-delimited field after the status
line. This extra entry was counted as an additional change, inflating
staged/dirty counts when the source filename started with [ACDMRTU].

Filter split results to entries matching a valid two-char status code
prefix, which excludes the bare source filenames.

Fixes #11296

Part of #12754
J
June Kim committed
f86c9af455284ac0e73f37ef2ce447603d12c178
Parent: f69f074
Committed by Johannes Altmanninger <aclopte@gmail.com> on 5/13/2026, 11:58:52 AM