From: René Scharfe Date: Sat, 01 Jan 2022 11:16:11 GMT Subject: Re: [PATCH 1/2] builtin/reflog.c: use parse-options for expire subcommand Message-ID: In-Reply-To: <6C9B7D67-D21C-44EA-B3FB-9605968AD0FF@gmail.com> Am 01.01.22 um 03:06 schrieb John Cai: > > >> On Dec 30, 2021, at 10:29 PM, John Cai via GitGitGadget wrote: >> >> 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=