From: John Cai via GitGitGadget Date: Fri, 31 Dec 2021 06:29:10 GMT Subject: [PATCH 1/2] builtin/reflog.c: use parse-options for expire subcommand Message-ID: <9bd3c6672c4232e0a5c0905b834146ca02af8a4b.1640932151.git.gitgitgadget@gmail.com> In-Reply-To: From: John Cai Switch out manual argv parsing for the reflog expire subcommand to use the parse-options API. Signed-off-by: "John Cai" --- builtin/reflog.c | 72 ++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/builtin/reflog.c b/builtin/reflog.c index 175c83e7cc2..afaf5ba67e2 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -11,13 +11,8 @@ #include "revision.h" #include "reachable.h" #include "worktree.h" +#include "parse-options.h" -/* NEEDSWORK: switch to using parse_options */ -static const char reflog_expire_usage[] = -N_("git reflog expire [--expire=