4efad7ab1ba0d1715af62e484c6852808581cfb9

Author
Rejman Nascimento <72097727+rejmann@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(git-commit): add `wip` kind (#12188)

Diff

 1diff --git a/plugins/git-commit/README.md b/plugins/git-commit/README.md
 2index 91cc73b44f8db33da1cf77859afaa97171d432e1..a009839355e6d4f9d4d07749e47de6e2cda69223 100644
 3--- a/plugins/git-commit/README.md
 4+++ b/plugins/git-commit/README.md
 5@@ -29,8 +29,9 @@ Where `type` is one of the following:
 6 - `rev`
 7 - `style`
 8 - `test`
 9+- `wip`
10 
11-> NOTE: the alias for `revert` type is `rev`, as otherwise it conflicts with the git command of the same name.  
12+> NOTE: the alias for `revert` type is `rev`, as otherwise it conflicts with the git command of the same name.
13 > It will still generate a commit message in the format `revert: <message>`
14 
15 ## Examples
16@@ -38,5 +39,6 @@ Where `type` is one of the following:
17 | Git alias                                     | Command                                              |
18 | --------------------------------------------- | ---------------------------------------------------- |
19 | `git style "remove trailing whitespace"`      | `git commit -m "style: remove trailing whitespace"`  |
20+| `git wip "work in progress"`                  | `git commit -m "work in progress"`                   |
21 | `git fix -s "router" "correct redirect link"` | `git commit -m "fix(router): correct redirect link"` |
22 | `git rev -s "api" "rollback v2"`              | `git commit -m "revert(api): rollback v2"`           |
23diff --git a/plugins/git-commit/git-commit.plugin.zsh b/plugins/git-commit/git-commit.plugin.zsh
24index 72cecb1d62d30f3b7bb38594b34dff6bf742d814..3f0c2121dda4e13c20165e882dca5af4eeb06987 100644
25--- a/plugins/git-commit/git-commit.plugin.zsh
26+++ b/plugins/git-commit/git-commit.plugin.zsh
27@@ -11,6 +11,7 @@ _git_commit_aliases=(
28   'revert'
29   'style'
30   'test'
31+  'wip'
32 )
33 
34 local alias type