diff options
author | Robby Russell <robby@planetargon.com> | 2014-03-22 13:36:27 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-03-22 13:36:27 -0700 |
commit | 319aafce8bf93f7fe1ddbfcafdb42d4a60c1d8a3 (patch) | |
tree | 95ad19d92bf3747bf574945fe447a2967b8b540c /plugins | |
parent | 23fe53eb5f9cafb5d6e719d51b241a55dc85c150 (diff) | |
parent | a869ec9bc848a011a3068fbaed52b4cbd04681aa (diff) | |
download | zsh-319aafce8bf93f7fe1ddbfcafdb42d4a60c1d8a3.tar.gz zsh-319aafce8bf93f7fe1ddbfcafdb42d4a60c1d8a3.tar.bz2 zsh-319aafce8bf93f7fe1ddbfcafdb42d4a60c1d8a3.zip |
Merge pull request #2618 from bdubertret/fix-gwip-norm
Fix gwip alias in git plugin when no files to rm
Diffstat (limited to 'plugins')
-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 2b5983f33..9f7819df3 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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 |