aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/rev-parse.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-12-06 12:51:57 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-09 07:40:44 +0900
commitfa518aef564a24649ee6d8bbb29ed9c183a4b7c5 (patch)
treefb4791923f18fe94b7c0d8d2381cd1b7f0aaad11 /builtin/rev-parse.c
parentrepack: use die_for_incompatible_opt3() for -A/-k/--cruft (diff)
downloadgit-fa518aef564a24649ee6d8bbb29ed9c183a4b7c5.tar.gz
git-fa518aef564a24649ee6d8bbb29ed9c183a4b7c5.zip
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>
Diffstat (limited to 'builtin/rev-parse.c')
0 files changed, 0 insertions, 0 deletions