git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Sep 16, 2010, 09:07 UTC
Message-ID
<1284628079-14156-1-git-send-email-giuseppe.bilotta@gmail.com>
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`.)

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
Message 1 of 1 in “rebase: pass --signoff option to git am”
  1. rebase: pass --signoff option to git amGiuseppe Bilotta, Sep 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.