Meta/GRADUATED: sort the branches based on their origin

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.

Junio C Hamano committed Sep 11, 2012 at 16:19 UTC 4304d883d93dd9d8ef2d272518fa4595c31a00fd
1 file changed +2 -1
GRADUATED
+2 -1
@@ -63,7 +63,8 @@ do
63 done <"$tmp.both" |
64 sort -r -n |
65 sed -e 's/^[0-9]* //' \
66 - -e 's/^/git branch -d /'
66 + -e 's/^/git branch -d /' |
67 + sort -V -k 6,6
68 echo
69 cat "$tmp.known" "$tmp.both" | sort >"$tmp.next"
70 mv "$tmp.next" "$tmp.known"