From e2595c5ff5ec04dde4be01b610fbdce93664caae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez?= Date: Wed, 11 Dec 2013 13:24:19 +0100 Subject: [PATCH] Avoid showing 'git rm' usage when using gwip alias --- plugins/git/git.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index aca33f679..178d079d8 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -241,7 +241,7 @@ compdef _git ggpnp=git-checkout # Work In Progress (wip) # These features allow to pause a branch development and switch to another one # When you want to go back to work, just unwip it -alias gwip="git add -A; git ls-files --deleted -z | xargs ${XARGS_OPTS} -0 git rm; git commit -m \"--wip--\"" +alias gwip="git add -A; git ls-files --deleted -z | xargs ${XARGS_OPTS} -0 git rm 2>/dev/null; git commit -m \"--wip--\"" alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' # Ignore changes to file alias gignore='git update-index --assume-unchanged'