diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-03-06 01:00:35 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-03-06 01:00:35 +0100 |
commit | 6e360fc30879740173cedd3e00fde20e6d69c109 (patch) | |
tree | 615b0db36e5d69b318193b8f63d012b5a87a354d | |
parent | Add support for xz tarballs. (diff) | |
download | laurent-tools-6e360fc30879740173cedd3e00fde20e6d69c109.tar.xz laurent-tools-6e360fc30879740173cedd3e00fde20e6d69c109.zip |
conf/bashrc: add gitpush1 to push commits one by one
usefull for github service email on commit, that sends only one email per push
(maybe this is configurable ? still usefull if you don't have control over it)
-rw-r--r-- | conf/bashrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/bashrc b/conf/bashrc index c3c4068..cf0a874 100644 --- a/conf/bashrc +++ b/conf/bashrc @@ -90,6 +90,7 @@ 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 } alias dhk='sudo pkill -f dhcpcd' alias dhc='sudo dhcpcd' |