Display file permission changes next to filenames #4
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.
Closes desktop#11685
Description
When files have only permission changes (e.g.,
chmod +x), Desktop displayed misleading messages like "Only whitespace changes found" with no indication of what actually changed.This PR has been rebased onto the
developmentbranch and properly integrates with upstream changes including submodule status tracking, rename score features, and path highlighting functionality.Implementation
oldMode/newModetoPlainFileStatusandCopiedOrRenamedFileStatus, alongside upstream'ssubmoduleStatusandrenameIncludesModificationsfields(100644 → 100755)next to filename in PathLabel component, integrated with upstream's span-based rendering and matches propThe mode information flows from status parser → file status model → UI without additional git calls. Handles all status types (Modified, New, Renamed, Copied, Deleted). Changes are properly merged with upstream features for submodule tracking and rename detection.
Screenshots
Before: File with permission change shows no indication
After: Permission change clearly visible
Release notes
Notes: When files have only permission changes, the mode change (e.g.,
100644 → 100755) now displays next to the filename in the changes list.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.