This commit is contained in:
Nicolas Canceill 2014-04-19 20:17:49 +00:00
commit f998bf99af

View file

@ -148,8 +148,12 @@ function work_in_progress() {
echo "WIP!!"
fi
}
# these alias commit and uncomit wip branches
alias gwip='git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m "--wip--"'
# these aliases commit and uncommit wip branches
# first though, check xargs flavor for -r flag
echo | xargs -r &>/dev/null && XARGS_OPTS="-r"
alias gwip="git add -A; git ls-files --deleted -z | xargs ${XARGS_OPTS} -0 git rm; git commit -m \"--wip--\""
unset XARGS_OPTS
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
# these alias ignore changes to file