reflog exists: use parse_options() API
commita34393f5f8152ad8bdbf15bccffc2be12a9a19ca
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 17 Mar 2022 18:08:38 +0000 (17 19:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Mar 2022 01:03:12 +0000 (17 18:03 -0700)
treede26ab22e6c79cb3fb8b39b9e7a402114f4a8635
parentcbe485298bf06a4e6377f5a692c82a9e3ad38069
reflog exists: use parse_options() API

Change the "reflog exists" command added in afcb2e7a3b8 (git-reflog:
add exists command, 2015-07-21) to use parse_options() instead of its
own custom command-line parser. This continues work started in
33d7bdd6459 (builtin/reflog.c: use parse-options api for expire,
delete subcommands, 2022-01-06).

As a result we'll understand the --end-of-options synonym for "--", so
let's test for that.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c
t/t1418-reflog-exists.sh