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

[PATCH v3 3/3] rebase: add options passed to git-am

From
Michele Ballabio <barra_cuda@katamail.com>
Date
Mar 19, 2009, 15:28 UTC
Message-ID
<1237476528-6040-2-git-send-email-barra_cuda@katamail.com>
In-Reply-To
<fabb9a1e0903190401k1127dc8ev7704c8a7bd381c99@mail.gmail.com>

Add the options --committer-date-is-author-date and --ignore-date to git-rebase. They were introduced in commit a79ec62d0 for git-am. These options imply --force-rebase.

Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
---
 Documentation/git-rebase.txt |    6 ++++++
 git-rebase.sh                |    4 ++++
 2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
index 7ffeec8..592ec76 100644
--- a/Documentation/git-rebase.txt
+++ b/Documentation/git-rebase.txt
@@ -272,6 +272,12 @@ OPTIONS
 	If the flag `fix` (or its equivalent `strip`) is used, it implies
 	--force-rebase.
 
+--committer-date-is-author-date::
+--ignore-date::
+	These flags are passed to 'git-am' to easily change the dates
+	of the rebased commits (see linkgit:git-am[1]).
+	Both imply --force-rebase.
+
 -i::
 --interactive::
 	Make a list of the commits which are about to be rebased.  Let the
diff --git a/git-rebase.sh b/git-rebase.sh
index e38d68a..b83fd3f 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -309,6 +309,10 @@ do
 			;;
 		esac
 		;;
+	--committer-date-is-author-date|--ignore-date)
+		git_am_opt="$git_am_opt $1"
+		force_rebase=t
+		;;
 	-C*)
 		git_am_opt="$git_am_opt $1"
 		;;
-- 
1.6.2.22.gc2ac
Previous: Michele BallabioNext: Michele Ballabio
Message 9 of 13 in “rebase: fix typo (force_rebas -> force-rebas)”
  1. 1/3 rebase: fix typo (force_rebas -> force-rebas)Michele Ballabio, Mar 18, 2009
  2. 2/3 document --force-rebaseMichele Ballabio, Mar 18, 2009
  3. Junio C HamanoMar 18, 2009
  4. Junio C HamanoMar 18, 2009
  5. 2/3 document --force-rebaseMichele Ballabio, Mar 18, 2009
  6. Johannes SchindelinMar 18, 2009
  7. Sverre RabbelierMar 19, 2009
  8. 2/3 document --force-rebaseMichele Ballabio, Mar 19, 2009
  9. 3/3 rebase: add options passed to git-amMichele Ballabio, Mar 19, 2009
  10. 3/3 rebase: add options passed to git-amMichele Ballabio, Mar 18, 2009
  11. Junio C HamanoMar 18, 2009
  12. 3/3 rebase: add options passed to git-amMichele Ballabio, Mar 18, 2009
  13. Michele BallabioMar 27, 2009

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.