aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/rebase.c
diff options
context:
space:
mode:
authorRohit Ashiwal <rohit.ashiwal265@gmail.com>2019-11-01 19:30:03 +0530
committerJunio C Hamano <gitster@pobox.com>2019-11-02 15:37:12 +0900
commitfe28ad8520a0ecac5dfcbfa019727aa6d79c36dc (patch)
tree742e7c996b8975c328b2ff6c6c6474f78025a315 /builtin/rebase.c
parentrebase -i: support --ignore-date (diff)
downloadgit-fe28ad8520a0ecac5dfcbfa019727aa6d79c36dc.tar.gz
git-fe28ad8520a0ecac5dfcbfa019727aa6d79c36dc.zip
rebase: add --reset-author-date
The previous commit introduced --ignore-date flag to interactive rebase, but the name is actually very vague in context of rebase -i since there are two dates we can work with. Add an alias to convey the precise purpose. Signed-off-by: Rohit Ashiwal <rohit.ashiwal265@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rebase.c')
-rw-r--r--builtin/rebase.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/rebase.c b/builtin/rebase.c
index b7d3de1a0f..44768082b8 100644
--- a/builtin/rebase.c
+++ b/builtin/rebase.c
@@ -1436,6 +1436,8 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
OPT_BOOL(0, "committer-date-is-author-date",
&options.committer_date_is_author_date,
N_("make committer date match author date")),
+ OPT_BOOL(0, "reset-author-date", &options.ignore_date,
+ "ignore author date and use current date"),
OPT_BOOL(0, "ignore-date", &options.ignore_date,
"ignore author date and use current date"),
OPT_PASSTHRU_ARGV('C', NULL, &options.git_am_opts, N_("n"),