summaryrefslogtreecommitdiff
path: root/t/unit-tests/t-basic.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-11-24 12:10:32 +0100
committerJunio C Hamano <gitster@pobox.com>2023-11-26 10:10:48 +0900
commitd46da6d90be99f91988eececd5368170b0eded1f (patch)
tree7b48e5cdb404151cfc23f18626d91b0350034f28 /t/unit-tests/t-basic.c
parentf920b0289ba3971451a1cd478baa1d4fddbb0a0b (diff)
replay: start using parse_options API
Instead of manually parsing arguments, let's start using the parse_options API. This way this new builtin will look more standard, and in some upcoming commits will more easily be able to handle more command line options. Note that we plan to later use standard revision ranges instead of hardcoded "<oldbase> <branch>" arguments. When we will use standard revision ranges, it will be easier to check if there are no spurious arguments if we keep ARGV[0], so let's call parse_options() with PARSE_OPT_KEEP_ARGV0 even if we don't need ARGV[0] right now to avoid some useless code churn. Co-authored-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-basic.c')
0 files changed, 0 insertions, 0 deletions