]> git.ipfire.org Git - thirdparty/git.git/commit
replay: change rev walking options
authorElijah Newren <newren@gmail.com>
Fri, 24 Nov 2023 11:10:35 +0000 (12:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Nov 2023 01:10:48 +0000 (10:10 +0900)
commit8259e4154f46de5b3443a3ff7b1cc4441ec6b7df
treea8e08a6ba6037c55374fdab7d6bd666811eb1b3b
parente787e664da640d1d4b15c6dc67a704dfa56592f9
replay: change rev walking options

Let's force the rev walking options we need after calling
setup_revisions() instead of before.

This might override some user supplied rev walking command line options
though. So let's detect that and warn users by:

  a) setting the desired values, before setup_revisions(),
  b) checking after setup_revisions() whether these values differ from
     the desired values,
  c) if so throwing a warning and setting the desired values again.

We want the command to work from older commits to newer ones by default.
Also we don't want history simplification, as we want to deal with all
the commits in the affected range.

Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Co-authored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c