From: John Cai via GitGitGadget Date: Mon, 03 Jan 2022 15:20:22 GMT Subject: [PATCH v2 2/2] builtin/reflog.c: switch to use parse-options API for delete subcommand Message-ID: In-Reply-To: From: John Cai Address NEEDSWORK by switching out manual arg parsing for the parse-options API for the delete subcommand. Moves explicit_expiry flag into cmd_reflog_expire_cb struct so a callback can set both the value of the expiration as well as the explicit_expiry flag. Signed-off-by: "John Cai" --- builtin/reflog.c | 168 ++++++++++++++++++++++++----------------------- 1 file changed, 87 insertions(+), 81 deletions(-) diff --git a/builtin/reflog.c b/builtin/reflog.c index 175c83e7cc2..3552d749e4b 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -12,15 +12,6 @@ #include "reachable.h" #include "worktree.h" -/* NEEDSWORK: switch to using parse_options */ -static const char reflog_expire_usage[] = -N_("git reflog expire [--expire=