diff options
| author | Matt Hunter <m@lfurio.us> | 2026-04-30 03:45:18 -0400 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-05-07 19:56:04 -0400 |
| commit | 850752caeceff7de4492251706fdc6edd0537d82 (patch) | |
| tree | 3799b1c72cd35eb80238066fe919d86e833d6967 /shunit | |
| parent | edf22dc5e40b3cdfe9beaf3365002ccb3cd527c2 (diff) | |
| download | git-sonar-850752caeceff7de4492251706fdc6edd0537d82.tar.gz git-sonar-850752caeceff7de4492251706fdc6edd0537d82.zip | |
Reorder file status change indicators
At the moment, changes are scanned for and displayed in the order they
are enumerated in the git-status manpage. Reorder them to something
more intuitive.
The new order shown is inspired by the previous version in git-radar,
but is not identical. In general, display additions, modifications,
then deletions. Other change types are mixed in where they seem
appropriate - typechanged is always at the end.
Files renamed/copied are dropped from the unstaged changes list. Even
though these are documented as possible outputs, it's understood that
git's diff machinery requires changes to be in the index for rename or
copy detection to work. So, don't spend cycles looking for these in the
work tree.
The "other side" change symbol used by the staged/unstaged regexes is
updated to the character class [^U] to eliminate the burden of keeping
two copies of each list in sync. This is made possible by the previous
commit. We can count on all unmerged paths containing at least one "U"
status symbol, disqualifying them from staged/unstaged.
Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
