summaryrefslogtreecommitdiff
path: root/t/unit-tests/u-string-list.c
diff options
context:
space:
mode:
authorSiddharth Asthana <siddharthasthana31@gmail.com>2025-11-06 00:45:59 +0530
committerJunio C Hamano <gitster@pobox.com>2025-11-05 13:34:55 -0800
commite031fa100603af74def6bf2a646c731e4fcd12fc (patch)
tree85b074316835ebe8c0039fd27d31efbefd1f392f /t/unit-tests/u-string-list.c
parentbb69721404348ea2db0a081c41ab6ebfe75bdec8 (diff)
replay: use die_for_incompatible_opt2() for option validation
In preparation for adding the --ref-action option, convert option validation to use die_for_incompatible_opt2(). This helper provides standardized error messages for mutually exclusive options. The following commit introduces --ref-action which will be incompatible with certain other options. Using die_for_incompatible_opt2() now means that commit can cleanly add its validation using the same pattern, keeping the validation logic consistent and maintainable. This also aligns git-replay's option handling with how other Git commands manage option conflicts, using the established die_for_incompatible_opt*() helper family. Signed-off-by: Siddharth Asthana <siddharthasthana31@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/u-string-list.c')
0 files changed, 0 insertions, 0 deletions