revision: use die_for_incompatible_opt3() for - -graph/--reverse/--walk-reflogs
commitfa518aef564a24649ee6d8bbb29ed9c183a4b7c5
authorRené Scharfe <l.s.r@web.de>
Wed, 6 Dec 2023 11:51:57 +0000 (6 12:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Dec 2023 22:40:44 +0000 (9 07:40 +0900)
treefb4791923f18fe94b7c0d8d2381cd1b7f0aaad11
parent12418008679e3ab6bd57a8b974ac56b7c1bd5315
revision: use die_for_incompatible_opt3() for - -graph/--reverse/--walk-reflogs

The revision option --reverse is incompatible with --walk-reflogs and
--graph is incompatible with both --reverse and --walk-reflogs.  So they
are all incompatible with each other.

Use the function for checking three mutually incompatible options,
die_for_incompatible_opt3(), to perform this check in one place and
without repetition.  This is shorter and clearer.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c