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.
This commit is contained in:
Junio C Hamano
2012-09-11 16:19:16 -07:00
parent a2e12fcc8e
commit 4304d883d9

View File

@@ -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"