threads / patch / 25121

patchrebase: pass --signoff option to git am

Subject: [PATCH] rebase: pass --signoff option to git am

## tl;dr

One message between Sep 16, 2010 and Sep 16, 2010. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Giuseppe Bilotta· Sep 16, 2010, 09:07 UTC · lore
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
 git-rebase.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Although this patch is born to help people like me that forget to sign off their patchset before sending, it can also be of help to maintainers that want to add their signoff to a patchset in case they forgot during the `git am` run. (Also, there is no reason why this `git am` option should not be available through `git rebase`.)

Show changes to git-rebase.sh +1 −1
diff --git a/git-rebase.sh b/git-rebase.sh
index 3335cee..cdb4299 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -358,7 +358,7 @@ do
 	--ignore-whitespace)
 		git_am_opt="$git_am_opt $1"
 		;;
-	--committer-date-is-author-date|--ignore-date)
+	--committer-date-is-author-date|--ignore-date|--signoff)
 		git_am_opt="$git_am_opt $1"
 		force_rebase=t
 		;;
-- 
1.7.3.rc1.230.g8b572

← back to recent threads