Skip to content

Commit 7627c93

Browse files
mvdanmyitcv
authored andcommitted
doc: mention the commit message hook for --signoff
There's a useful section at the end of the doc to set up a git hook so we don't have to specify -s. Link to it when -s is first mentioned. Closes #1369. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I155665a95c6612d0ef5efc8745c2d092b2dfd109 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/532889 Reviewed-by: Paul Jolly <paul@myitcv.io>
1 parent 054cc31 commit 7627c93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/contribute.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ When committing, use the `--signoff` (or `-s`) flag:
180180
git commit -s
181181
```
182182

183+
You can also [set up a prepare-commit-msg git
184+
hook](#do-i-really-have-to-add-the--s-flag-to-each-commit) to not have to supply
185+
the `-s` flag.
186+
183187
The explanations of the GitHub and GerritHub contribution workflows that follow
184188
assume all commits you create are signed-off in this way.
185189

0 commit comments

Comments
 (0)