summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/branch.tcl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/branch.tcl b/lib/branch.tcl
index de638d0..a6e6921 100644
--- a/lib/branch.tcl
+++ b/lib/branch.tcl
@@ -21,14 +21,13 @@ proc load_all_heads {} {
proc load_all_tags {} {
set all_tags [list]
- set fd [open "| git for-each-ref --format=%(refname) refs/tags" r]
+ set fd [open "| git for-each-ref --sort=-taggerdate --format=%(refname) refs/tags" r]
while {[gets $fd line] > 0} {
if {![regsub ^refs/tags/ $line {} name]} continue
lappend all_tags $name
}
close $fd
-
- return [lsort $all_tags]
+ return $all_tags
}
proc populate_branch_menu {} {