desktop / desktop/desktop

Sort all branches by last update

Open
#5,155 21 comments 25 reactions 0 assignees View on GitHub
skip-pitch user-research
Dominant language
TypeScript
Stars
21.8k
Forks
10.5k
Avg merge
1d 15h
Merged PRs (30d)
25

Description

**Is your feature request related to a problem? Please describe.**

Showing recent branches is a great feature, but I often have trouble finding a fairly recent branch because it's disappeared from the short "Recent Branches" list.

**Describe the solution you'd like**

Divide the list of branches into "Local Branches" (sorted by date) and "Remote Branches" (sorted by date), instead of "Recent Branches" (sorted by date) and "Other Branches" (sorted alphabetically).

It's not very useful to have branches sorted alphabetically, as you can already type to filter them.

**Describe alternatives you've considered**

Switching to the command line and using a custom `git branches` alias:

```bash
for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
```

**Teachability, Documentation, Adoption, Migration Strategy**

This would replace the current dropdown list of branches.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.