Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix gwip alias in git plugin when no files to rm

  • Loading branch information...
commit a869ec9bc848a011a3068fbaed52b4cbd04681aa 1 parent ca90021
Benoit Dubertret authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/git/git.plugin.zsh
2  plugins/git/git.plugin.zsh
View
@@ -149,7 +149,7 @@ function work_in_progress() {
fi
}
# these alias commit and uncomit wip branches
-alias gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "--wip--"'
+alias gwip='git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m "--wip--"'
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
# these alias ignore changes to file
Please sign in to comment.
Something went wrong with that request. Please try again.