From 8fa8dd84a4183584336b9ce1f961119e02fa1cf7 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Fri, 14 Jun 2013 02:51:32 +0200 Subject: bashrc: add gitunpushed alias --- conf/bashrc-laurent-public | 1 + 1 file changed, 1 insertion(+) (limited to 'conf') diff --git a/conf/bashrc-laurent-public b/conf/bashrc-laurent-public index 53a5561..434d122 100644 --- a/conf/bashrc-laurent-public +++ b/conf/bashrc-laurent-public @@ -94,6 +94,7 @@ alias gitsta='git stash' alias gitstap='git stash pop' # 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 gitunpushed='export GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH' alias dhk='sudo pkill -f dhcpcd' alias dhc='sudo dhcpcd' -- cgit v1.2.3-59-g8ed1b