]> asedeno.scripts.mit.edu Git - git.git/blobdiff - lib/branch.tcl
git-gui: Refactor our ui_status_value update technique
[git.git] / lib / branch.tcl
index de638d02e8023636e4198d5546e1eb3ac6f6ab32..a6e6921174cde718fd7cf51b5a8d60cc41a06ab3 100644 (file)
@@ -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 {} {