]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.h
rebase -i: support --ignore-date
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 17 Aug 2020 17:40:03 +0000 (18:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2020 22:19:59 +0000 (15:19 -0700)
commita3894aad67df655a9c7f3b511093f681d3a01fb7
tree52dc920b2f4465db647f8b1f3b86c62b324f1a83
parent7573cec52c0274ceb166c425be4288f6b3103d6f
rebase -i: support --ignore-date

Rebase is implemented with two different backends - 'apply' and
'merge' each of which support a different set of options. In
particular the apply backend supports a number of options implemented
by 'git am' that are not implemented in the merge backend. This means
that the available options are different depending on which backend is
used which is confusing. This patch adds support for the --ignore-date
option to the merge backend. This option uses the current time as the
author date rather than reusing the original author date when
rewriting commits. We take care to handle the combination of
--ignore-date and --committer-date-is-author-date in the same way as
the apply backend.

Original-patch-by: Rohit Ashiwal <rohit.ashiwal265@gmail.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt
builtin/rebase.c
sequencer.c
sequencer.h
t/t3436-rebase-more-options.sh