Sort "git branch" by committerdate
dblume

dblume commited on 2024-03-07 23:10:24
Showing 1 changed files, with 2 additions and 0 deletions.


Make the command `git branch` sort by last used branches instead of
alphabetical. No more trying to remember what you called that last branch.
See https://mastodon.social/@doctormo@floss.social/111835388866251955
... ...
@@ -12,6 +12,8 @@
12 12
 	highlightRecent = 239, 18 month ago, 240, 17 month ago, 241, 16 month ago, 242, 15 month ago, 243, 14 month ago, 244, 13 month ago, 245, 12 month ago, 246, 11 month ago, 247, 10 month ago, 248, 9 month ago, 249, 8 month ago, 250, 7 month ago, 251, 6 month ago, 252, 5 month ago, 253, 4 month ago, 254, 3 month ago, 231, 2 month ago, 230, 1 month ago, 229, 3 weeks ago, 228, 2 weeks ago, 227, 1 week ago, 226
13 13
 [blame]
14 14
 	date = short
15
+[branch]
16
+	sort = -committerdate
15 17
 [push]
16 18
 	default = simple
17 19
 	autoSetupRemote = true
18 20