3

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?

0
1

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.

1

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'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.