827d9dfcb406c5d25470010933fc6fde85a7ded7
- Author
- Sam O <soluwalana@gmail.com>
- Committer
- Sam O <soluwalana@gmail.com>
- Date
Message
Update git.plugin.zsh
Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index fde22a37db7af1ba1688fa874242f183c7d9ff61..42b4698f9c3220f50ce80bd95cc1a74e2597bfba 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -142,13 +142,13 @@ compdef _git glp=git-log
6 #
7 # This function return a warning if the current branch is a wip
8 function work_in_progress() {
9- if $(git log -n 1 2>/dev/null | grep -q -c wip); then
10+ if $(git log -n 1 2>/dev/null | grep -q -c "--wip--"); then
11 echo "WIP!!"
12 fi
13 }
14 # these alias commit and uncomit wip branches
15-alias gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "wip"'
16-alias gunwip='git log -n 1 | grep -q -c wip && git reset HEAD~1'
17+alias gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "--wip--"'
18+alias gunwip='git log -n 1 | grep -q -c "--wip--" && git reset HEAD~1'
19
20 # these alias ignore changes to file
21 alias gignore='git update-index --assume-unchanged'