diff options
author | ncanceill <nicolas.canceill@ens-cachan.org> | 2015-06-11 16:16:12 +0200 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2015-06-11 16:16:12 +0200 |
commit | 6ff96dab36865ab208b08a004903338bfd405eac (patch) | |
tree | 3698cdbdb47f94e732b123636ac25cc1c545e25e | |
parent | 6c29041af73fc3668f6a3256ebc7ab532a2bbba9 (diff) | |
download | zsh-6ff96dab36865ab208b08a004903338bfd405eac.tar.gz zsh-6ff96dab36865ab208b08a004903338bfd405eac.tar.bz2 zsh-6ff96dab36865ab208b08a004903338bfd405eac.zip |
git plugin: fix error msg in gwip alias
because git rm will fail when no files were deleted
-rw-r--r-- | plugins/git/git.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 154a7bb9c..7db43351a 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -204,4 +204,4 @@ alias gupv='git pull --rebase -v' alias gvt='git verify-tag' alias gwch='git whatchanged -p --abbrev-commit --pretty=medium' -alias gwip='git add -A; git rm $(git ls-files --deleted); git commit -m "--wip--"' +alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"' |