From: Rudolf Polzer Date: Fri, 16 Apr 2010 17:41:05 +0000 (+0200) Subject: ./all push -s X-Git-Tag: xonotic-v0.1.0preview~495 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=081cbbd21eb3f60614f868afd6a3ec3fd3ac6488;hp=0f21e25d2b09eecdac0817d9a82131304c36f67c ./all push -s submits the current branches to the repo as finished, to-be-merged, branches --- diff --git a/all b/all index e4316a0c..0020c6c2 100755 --- a/all +++ b/all @@ -1,4 +1,5 @@ #!/bin/sh +# vim: filetype=zsh set -e @@ -296,6 +297,7 @@ case "$cmd" in done ;; push|commit) + submit=$1 for d in $repos; do dv=`visible_repo_name "$d"` enter "$d0/$d" verbose @@ -323,6 +325,13 @@ case "$cmd" in verbose git push "$rem" HEAD fi fi + if [ x"$submit" = x"-s" ]; then + case "$r" in + */*) + verbose git push "$rem" HEAD:"${r%%/*}/finished/${r#*/}" + ;; + esac + fi cd "$d0" done ;; @@ -439,7 +448,7 @@ case "$cmd" in echo "Usage:" echo " $SELF pull" echo " $SELF merge" - echo " $SELF push" + echo " $SELF push [-s]" echo " $SELF branches" echo " $SELF branch [] " echo " $SELF branch "