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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Giuseppe Bilotta
Date: Saturday, November 27, 2010 - 4:15 am

This allows people (like me) that forget to sign off their commits to do
a single rebase pass e.g. while preparing the patchset for submission.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
 Documentation/git-rebase.txt |    6 ++++++
 git-rebase.sh                |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
index 30e5c0e..d513e42 100644
--- a/Documentation/git-rebase.txt
+++ b/Documentation/git-rebase.txt
@@ -320,6 +320,12 @@ link:howto/revert-a-faulty-merge.txt[revert-a-faulty-merge How-To] for details).
 -p::
 --preserve-merges::
 	Instead of ignoring merges, try to recreate them.
+
+--signoff::
+	This flag is passed to 'git am' to sign off all the rebased
+	commits (see linkgit:git-am[1]).
+	Incompatible with the --interactive option.
+
 +
 This uses the `--interactive` machinery internally, but combining it
 with the `--interactive` option explicitly is generally not a good
diff --git a/git-rebase.sh b/git-rebase.sh
index 0e9d52a..9de03ee 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -354,7 +354,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.2.184.gecaee

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] rebase: pass --signoff option to git am, Giuseppe Bilotta, (Sat Nov 27, 4:15 am)
Re: [PATCH] rebase: pass --signoff option to git am, Martin von Zweigbergk, (Sat Nov 27, 12:05 pm)
Re: [PATCH] rebase: pass --signoff option to git am, Sverre Rabbelier, (Sat Nov 27, 5:32 pm)
Re: [PATCH] rebase: pass --signoff option to git am, Giuseppe Bilotta, (Sun Nov 28, 1:00 am)
Re: [PATCH] rebase: pass --signoff option to git am, Kevin Ballard, (Mon Nov 29, 3:57 pm)
Re: [PATCH] rebase: pass --signoff option to git am, Giuseppe Bilotta, (Tue Nov 30, 1:09 am)
Re: [PATCH] rebase: pass --signoff option to git am, Giuseppe Bilotta, (Mon Dec 6, 3:41 am)
Re: [PATCH] rebase: pass --signoff option to git am, Jonathan Nieder, (Mon Dec 6, 10:28 am)