From: John Cai Date: Sat, 01 Jan 2022 19:09:43 GMT Subject: Re: [PATCH 1/2] builtin/reflog.c: use parse-options for expire subcommand Message-ID: <9D4E4253-6EBE-4AA7-86A5-413A732C6E38@gmail.com> In-Reply-To: > On Jan 1, 2022, at 3:16 AM, René Scharfe wrote: > > 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=