Skip to content

Commit

Permalink
doc: mention the commit message hook for --signoff
Browse files Browse the repository at this point in the history
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 cue-lang#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>
  • Loading branch information
mvdan authored and myitcv committed Feb 9, 2022
1 parent 054cc31 commit 7627c93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ When committing, use the `--signoff` (or `-s`) flag:
git commit -s
```

You can also [set up a prepare-commit-msg git
hook](#do-i-really-have-to-add-the--s-flag-to-each-commit) to not have to supply
the `-s` flag.

The explanations of the GitHub and GerritHub contribution workflows that follow
assume all commits you create are signed-off in this way.

Expand Down

0 comments on commit 7627c93

Please sign in to comment.