diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2020-08-17 19:40:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-17 20:58:37 +0200 |
commit | 7573cec52c0274ceb166c425be4288f6b3103d6f (patch) | |
tree | 6c44e2d1c7c53f313cc6e5745c33e23e808f081e /sequencer.h | |
parent | am: stop exporting GIT_COMMITTER_DATE (diff) | |
download | git-7573cec52c0274ceb166c425be4288f6b3103d6f.tar.xz git-7573cec52c0274ceb166c425be4288f6b3103d6f.zip |
rebase -i: support --committer-date-is-author-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
--committer-date-is-author-date option to the merge backend. This
option uses the author date of the commit that is being rewritten as
the committer date when the new commit is created.
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>
Diffstat (limited to 'sequencer.h')
-rw-r--r-- | sequencer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sequencer.h b/sequencer.h index 0bee85093e..7ca657fe2c 100644 --- a/sequencer.h +++ b/sequencer.h @@ -45,9 +45,12 @@ struct replay_opts { int verbose; int quiet; int reschedule_failed_exec; + int committer_date_is_author_date; int mainline; + char *committer_name; + char *committer_email; char *gpg_sign; enum commit_msg_cleanup_mode default_msg_cleanup; int explicit_cleanup; |