]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/GRADUATED: sort the branches based on their origin
authorJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2012 23:19:16 +0000 (16:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2012 23:19:31 +0000 (16:19 -0700)
The list of branches that have been merged is easier to read if the
topics based on similar vintage of the base revisions are grouped
together.

GRADUATED

index 45bf8b210236d624c06e46fe57d81402d867c033..1240cf366227f2a82ce5b65b421c3898869a0f1d 100755 (executable)
--- a/GRADUATED
+++ b/GRADUATED
@@ -63,7 +63,8 @@ do
                done <"$tmp.both" |
                sort -r -n |
                sed -e 's/^[0-9]* //' \
-                   -e 's/^/git branch -d /'
+                   -e 's/^/git branch -d /' |
+               sort -V -k 6,6
                echo
                cat "$tmp.known" "$tmp.both" | sort >"$tmp.next"
                mv "$tmp.next" "$tmp.known"