Repository navigation
Conversation
Empty new or deleted files and mode-only changes produce no "---" and "+++" lines, which were the only source of file names, so their header showed no name. A deleted empty file also got the green "added" marker, since both names were empty. Take the name from the "diff --git" line when both halves name the same file, and use "new file mode" / "deleted file mode" to mark which side is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y1vvcRJ5ENt6vxWCCT4WbJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some diffs have no hunks, and so no
---/+++lines, which are currently the only source of file names:chmod +x).Their header shows
■■with no name. A deleted empty file also gets the green "added" marker, since both names are empty.This takes the name from the
diff --git a/<name> b/<name>line, and usesnew file mode/deleted file modeto mark which side is missing. Since spaces in that line aren't escaped, the name is only taken when both halves name the same file (with or without thea/b/prefixes). Renames and quoted paths keep their existing handling viarename from/toand---/+++.Before:
After:
Tests
diff --gitblock that has only anindexline, which used to render a blank header and now shows.github/workflows/main.yml.🤖 Generated with Claude Code Opus 5.5