feat: Add support for extra args to be passed to the git commit command (#17)

* feat: Add support for extra args to be passed to the git commit command
This commit is contained in:
Nader Zouaoui
2023-03-19 08:58:21 +01:00
committed by GitHub
parent b0d27e62ba
commit d793bf1340
3 changed files with 29 additions and 9 deletions
+14
View File
@@ -84,6 +84,20 @@ To remove description:
oc config set description=false
```
### Git flags
The `opencommit` or `oc` commands can be used in place of the `git commit -m "${generatedMessage}"` command. This means that any regular flags that are used with the `git commit` command will also be applied when using `opencommit` or `oc`.
```sh
oc --no-verify
```
is translated to :
```sh
git commit -m "${generatedMessage}" --no-verify
```
## Git hook
You can set OpenCommit as Git [`prepare-commit-msg`](https://git-scm.com/docs/githooks#_prepare_commit_msg) hook. Hook integrates with you IDE Source Control and allows you edit the message before commit.