aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-03-21 18:29:42 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2013-03-21 18:29:42 +0100
commit8110c65209447d06f239fd7b370f927becbf6864 (patch)
tree96c87c0ca29c687453c156b6eb2baa6a40ac6162 /conf
parentconf: make deploy does symlink, not file copy (diff)
downloadlaurent-tools-8110c65209447d06f239fd7b370f927becbf6864.tar.xz
laurent-tools-8110c65209447d06f239fd7b370f927becbf6864.zip
conf: update bash alias gitpush1_test_DO() for pushing commits one by one
Diffstat (limited to 'conf')
-rw-r--r--conf/bashrc-public4
1 files changed, 4 insertions, 0 deletions
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'