rebase: add options passed to git-am
authorMichele Ballabio <barra_cuda@katamail.com>
Wed, 18 Mar 2009 20:53:49 +0000 (21:53 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Mar 2009 02:25:01 +0000 (19:25 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt
git-rebase.sh

index 276f1510c600e9535a750beceaa90ec0c8273389..3d5a066c31675e502eb027dde824d1966c9c0f09 100644 (file)
@@ -270,6 +270,11 @@ OPTIONS
        (see linkgit:git-apply[1]) that applies the patch.
        Incompatible with the --interactive option.
 
+--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]).
+
 -i::
 --interactive::
        Make a list of the commits which are about to be rebased.  Let the
index d38ab0b83fd46e4b3f7c0e81bc97a4b313925786..0ade6992289a807a268ad887d8a71ba54a87cf49 100755 (executable)
@@ -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"
                ;;