From 878a206db60278066a7f962a5d3a75eed232ed84 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 5 Jun 2017 19:34:42 +0200 Subject: [docs] add signoff-rebase alias --- docs/hacking/index.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/hacking') diff --git a/docs/hacking/index.rst b/docs/hacking/index.rst index 62a11869..3a00f3e3 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 --------------------------------- -- cgit v1.2.3