mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-06 05:59:40 +00:00
./all push -s
submits the current branches to the repo as finished, to-be-merged, branches
This commit is contained in:
parent
0f21e25d2b
commit
081cbbd21e
11
all
11
all
@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# vim: filetype=zsh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -296,6 +297,7 @@ case "$cmd" in
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
push|commit)
|
push|commit)
|
||||||
|
submit=$1
|
||||||
for d in $repos; do
|
for d in $repos; do
|
||||||
dv=`visible_repo_name "$d"`
|
dv=`visible_repo_name "$d"`
|
||||||
enter "$d0/$d" verbose
|
enter "$d0/$d" verbose
|
||||||
@ -323,6 +325,13 @@ case "$cmd" in
|
|||||||
verbose git push "$rem" HEAD
|
verbose git push "$rem" HEAD
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ x"$submit" = x"-s" ]; then
|
||||||
|
case "$r" in
|
||||||
|
*/*)
|
||||||
|
verbose git push "$rem" HEAD:"${r%%/*}/finished/${r#*/}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
cd "$d0"
|
cd "$d0"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
@ -439,7 +448,7 @@ case "$cmd" in
|
|||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
echo " $SELF pull"
|
echo " $SELF pull"
|
||||||
echo " $SELF merge"
|
echo " $SELF merge"
|
||||||
echo " $SELF push"
|
echo " $SELF push [-s]"
|
||||||
echo " $SELF branches"
|
echo " $SELF branches"
|
||||||
echo " $SELF branch [<remote>] <branchname>"
|
echo " $SELF branch [<remote>] <branchname>"
|
||||||
echo " $SELF branch <remote> <branchname> <srcbranchname>"
|
echo " $SELF branch <remote> <branchname> <srcbranchname>"
|
||||||
|
Loading…
Reference in New Issue
Block a user