In git I run this command to show recently used branches:
git for-each-ref --sort=-committerdate --count=10 refs/heads
How do I do this in magit?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityIn git I run this command to show recently used branches:
git for-each-ref --sort=-committerdate --count=10 refs/heads
How do I do this in magit?
This currently isn't possible in Magit. If you open a feature request, then I will consider adding such a feature, but I cannot promise that we will do so or even that we will do so soon.
Nowadays there is the option magit-list-refs-sortby
:
Any value accepted by the
--sort' flag of
git for-each-ref' can be used. For example, "-creatordate" places refs with more recent committer or tagger dates earlier in the list. A list of strings can also be given in order to pass multiple sort keys to `git for-each-ref'.