]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/reflog.c
builtin/reflog.c: use parse-options api for expire, delete subcommands
authorJohn Cai <johncai86@gmail.com>
Thu, 6 Jan 2022 19:06:21 +0000 (19:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jan 2022 22:13:06 +0000 (14:13 -0800)
commit33d7bdd64592d6dc86583a817719f91d7344e958
treed22f27b5e7deed9f35db743c54d7d58d3b27aae9
parente391a45102548295b19ea9ac4b71904edecf6990
builtin/reflog.c: use parse-options api for expire, delete subcommands

Switching out manual arg parsing for the parse-options API for the
expire and delete subcommands.

Move explicit_expiry flag into cmd_reflog_expire_cb struct so callbacks
can set both the value of the timestamp as well as the explicit_expiry
flag.

Signed-off-by: "John Cai" <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c