Skip to content

fix(git): handle rename and copy codes in diff name status parser - #1982

Merged
pynappo merged 2 commits into
nvim-neo-tree:mainfrom
flamingoosesoftwareinc:main
Feb 13, 2026
Merged

pynappo merged 2 commits into
nvim-neo-tree:mainfrom
flamingoosesoftwareinc:main

Conversation

@ahmedalhulaibi

Copy link
Copy Markdown
Contributor

Fixes parse_diff_name_status_output to handle git rename (R) and copy (C) status codes, which include a similarity percentage (e.g. R079, C100) and output two paths instead of one. Previously this caused a crash when renames/copies appeared in the diff with the similarity percentage. If I understood correctly the parser tried to use the percentage as a file path.

Recreated the error in 95cf11c and fixed in aedc443

@pynappo

pynappo commented Feb 13, 2026

Copy link
Copy Markdown
Collaborator

ty for noticing and adding the test case too, sorry about that

@pynappo
pynappo merged commit 1d682ea into nvim-neo-tree:main Feb 13, 2026
pynappo pushed a commit to pynappo/neo-tree.nvim that referenced this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants