Skip to content

Commit

Permalink
rebase: add --author-date-is-committer-date
Browse files Browse the repository at this point in the history
Commit 554377d ("rebase -i: support --ignore-date", 2019-08-05)
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>
  • Loading branch information
r1walz committed Aug 5, 2019
1 parent aabc871 commit 1b73405
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/git-rebase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ See also INCOMPATIBLE OPTIONS below.
as the committer date. This implies --force-rebase.

--ignore-date::
--author-date-is-committer-date::
Lie about the author date by re-setting it to the value
same as committer (current) date. This implies --force-rebase.
+
Expand Down
2 changes: 2 additions & 0 deletions builtin/rebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,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, "author-date-is-committer-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"),
Expand Down

0 comments on commit 1b73405

Please sign in to comment.