diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-03-24 03:38:47 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-03-24 03:38:47 +0100 |
commit | 0280f6a07f1f608ae568e1d41e562347ccdeb9b2 (patch) | |
tree | 9f780eae85335678fe0e5e7559506917b820f719 /conf/bashrc-laurent-public | |
parent | tools/switch_wireshark_fedora.sh: add script description (diff) | |
download | laurent-tools-0280f6a07f1f608ae568e1d41e562347ccdeb9b2.tar.xz laurent-tools-0280f6a07f1f608ae568e1d41e562347ccdeb9b2.zip |
conf/bashrc: final version of gitpush1_branch
Pushes commits 1by1. Only works if noone has commited before you.
Good if you do dev in your own branch.
Diffstat (limited to '')
-rw-r--r-- | conf/bashrc-laurent-public | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/conf/bashrc-laurent-public b/conf/bashrc-laurent-public index b4bfa2a..1196490 100644 --- a/conf/bashrc-laurent-public +++ b/conf/bashrc-laurent-public @@ -89,11 +89,8 @@ alias gitpull='git pull' 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 } +# Pushes commits 1by1. Only works if noone has commited before you. Good if you do dev in your own branch. +function gitpush1_branch() { 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' |