diff-merges: revise revs->diff flag handling
authorSergey Organov <redacted>
Mon, 21 Dec 2020 15:19:42 +0000 (18:19 +0300)
committerJunio C Hamano <redacted>
Mon, 21 Dec 2020 21:47:31 +0000 (13:47 -0800)
commite121b4b822765336cd4710ec9f8aed77d25de3fe
tree80115197a3bc1cd4b263166fe01e5a35652b88eb
parent0c627f5d3cbcb7d85219d9a4cfc195f7d4230b3d
diff-merges: revise revs->diff flag handling

Do not set revs->diff when we encounter an option that needs it, as
it'd be impossible to undo later. Besides, some other options than
what we handle here set this flag as well, and we'd interfere with
them trying to clear this flag later.

Rather set revs->diff, if finally needed, in diff_merges_setup_revs().

As an additional bonus, this also makes our code shorter.

Signed-off-by: Sergey Organov <redacted>
Signed-off-by: Junio C Hamano <redacted>
diff-merges.c
git clone https://git.99rst.org/PROJECT