]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/pushall: attempt to auto-push the tip-tag
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Dec 2012 21:48:43 +0000 (13:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Dec 2012 21:48:43 +0000 (13:48 -0800)
pushall

diff --git a/pushall b/pushall
index 4045cbd27ba04fac4616555f27be58a2aa1d0dc3..c4d6e1de4050b9a87c1427f88d96285e8f228614 100755 (executable)
--- a/pushall
+++ b/pushall
@@ -1,5 +1,19 @@
 #!/bin/sh
 
+case "$#" in
+0)
+       tagged=
+       for branch in maint master
+       do
+               t=$(git describe --exact-match $branch 2>/dev/null) &&
+               tagged="$tagged$t "
+       done
+       if test -n "$tagged"
+       then
+               "$0" $tagged
+       fi
+esac
+
 for remote in ko repo gph github2 sfjp sf.net
 do
        printf "%s: " "$remote"