]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options: introduce die_for_incompatible_opt2()
authorToon Claes <toon@iotcl.com>
Thu, 6 Feb 2025 06:33:34 +0000 (07:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Feb 2025 20:23:54 +0000 (12:23 -0800)
commit9144b9362b2ed972f5886dcc7beee6a2acce2708
tree843fbc779c26450b5299dade9feafbd4e13f09a1
parent7a52a8c7d855d3ed779059af160248934ac2c6b0
parse-options: introduce die_for_incompatible_opt2()

The functions die_for_incompatible_opt3() and
die_for_incompatible_opt4() already exist to die whenever a user
specifies three or four options respectively that are not compatible.

Introduce die_for_incompatible_opt2() which dies when two options that
are incompatible are set.

Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c
parse-options.h