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.
todo
Junio C Hamano 2012-09-11 16:19:16 -07:00
parent a2e12fcc8e
commit 4304d883d9
1 changed files with 2 additions and 1 deletions

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"