From 8110c65209447d06f239fd7b370f927becbf6864 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 21 Mar 2013 18:29:42 +0100 Subject: conf: update bash alias gitpush1_test_DO() for pushing commits one by one --- conf/bashrc-public | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'conf') diff --git a/conf/bashrc-public b/conf/bashrc-public index 1569bf0..c5e936c 100644 --- a/conf/bashrc-public +++ b/conf/bashrc-public @@ -92,6 +92,10 @@ alias gitsync='git pull; git push' alias gitsta='git stash' alias gitstap='git stash pop' function gitpush1() { git log |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:`git rev-parse --abbrev-ref HEAD`"; echo $cmd; $($cmd) ||exit; done } +# XXX disable for analysis +#function gitpush1_test() { branch=`git rev-parse --abbrev-ref HEAD`; git log origin/$branch..$branch |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:$branch"; echo $cmd; $($cmd) ||exit; done } +function gitpush1_test() { branch=`git rev-parse --abbrev-ref HEAD`; git log origin/$branch..$branch |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:$branch"; echo $cmd; done } +function gitpush1_test_DO() { branch=`git rev-parse --abbrev-ref HEAD`; git log origin/$branch..$branch |egrep "^commit .*" |awk "{print \$2} /^commit $1$/ {exit}" |tac |while read c; do cmd="git push origin $c:$branch"; echo $cmd; $($cmd) ||exit; done } alias dhk='sudo pkill -f dhcpcd' alias dhc='sudo dhcpcd' -- cgit v1.2.3-59-g8ed1b