Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sort staged and unstaged files by path. #1671
Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.
Description of the Change
Previously, staged and unstaged files returned from Git were sorted alphabetically by path in the "Staged Changes" pane, but grouped by change status in the "Unstaged Changes" pane:
This made navigating the two panes counterintuitive, as the rhyme and reason behind the groupings in "Unstaged" was not immediately obvious and the sort pattern changed midway through a typical Git workflow.
This small change simply drops a
I considered diving a little deeper into the Git API and exploring why the two results were sorted so differently, but settled on this as a comfortable middle ground between actually shipping a change and extensive Talmudic study of the code base.
For my money, at least, this is a fast and easy way of ironing out a frustrating UX tic.
Folks may have become accustomed to the bad behavior, but otherwise, I can't see any issues.