Skip to content

Commit

Permalink
Document how to setup automatic signoff
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Pavlenko <dmitriy.pavlenko@sysgears.com>
  • Loading branch information
dmitriypdv committed Jan 8, 2014
1 parent 2c409fd commit 5124056
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ By doing this you certify the below:

Developer's Certificate of Origin 1.1

If you wish to add the signoff to the commit message on your every commit
without the need to specify -s or --signoff, rename
.git/hooks/commit-msg.sample to .git/hooks/commit-msg and uncomment the lines:

``` sh
SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
```

Developer's Certificate of Origin
---------------------------------

Expand Down

0 comments on commit 5124056

Please sign in to comment.