diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-06-05 19:34:42 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-06-05 19:34:42 +0200 |
commit | 878a206db60278066a7f962a5d3a75eed232ed84 (patch) | |
tree | 03212ce746891821b00d9be3b0280597d044cfb4 /docs | |
parent | 820709938e4313e04bab160115cc215769c3a1fb (diff) |
[docs] add signoff-rebase alias
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hacking/index.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/hacking/index.rst b/docs/hacking/index.rst index 62a1186..3a00f3e 100644 --- a/docs/hacking/index.rst +++ b/docs/hacking/index.rst @@ -178,6 +178,13 @@ For contributors with commit access, you **should** sign all your commits. If you are merging some code from external contributors, you should sign their commits. +For handy alias for sign and signoff commits from external contributors add to +your gitconfig:: + + [alias] + # Usage: git signoff-rebase [base-commit] + signoff-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && while test -f .git/rebase-merge/interactive; do git commit --amend --signoff --no-edit && git rebase --continue; done' -" + Merging code --------------------------------- |