Skip to content

Commit 5e22040

Browse files
committed
feat(cli.py): add shortcut for signoff command
add -s shortcut for the --signoff command
1 parent 7b7b0c9 commit 5e22040

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

commitizen/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"help": "show output to stdout, no commit, no modified files",
5151
},
5252
{
53-
"name": "--signoff",
53+
"name": ["-s", "--signoff"],
5454
"action": "store_true",
5555
"help": "Sign off the commit",
5656
},

docs/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,20 @@ or the shortcut
8686
cz c
8787
```
8888

89+
#### Sign off the commit
90+
91+
Run in the terminal
92+
93+
```bash
94+
cz commit --signoff
95+
```
96+
97+
or the shortcut
98+
99+
```bash
100+
cz commit -s
101+
```
102+
89103
### Integrating with Pre-commit
90104
Commitizen can lint your commit message for you with `cz check`.
91105
You can integrate this in your [pre-commit](https://pre-commit.com/) config with:

0 commit comments

Comments
 (0)