diff options
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' |