Skip to content

Add sorting branches for git checkout feature #38507

@dmyger

Description

@dmyger

Could you add a simple sorting feature to let easy navigation in the list of branches.
It's very simple suggestion just put a few words in the file
code/resources/app/extensions/git/out/git.js in function getRefs():
you have to need change a line 800: const result = yield this.run(['for-each-ref', '--format', '%(refname) %(objectname)']); by adding one more argument '--sort=-committerdate'.
It would makes back reverse sorting by date of last commit, so we get a fresh branches in the top of list.
As a future improvement it would be great to have an user settings for such option.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygitGIT issueshelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions