From: John Cai Date: Sat, 01 Jan 2022 02:06:58 GMT Subject: Re: [PATCH 1/2] builtin/reflog.c: use parse-options for expire subcommand Message-ID: <6C9B7D67-D21C-44EA-B3FB-9605968AD0FF@gmail.com> In-Reply-To: <9bd3c6672c4232e0a5c0905b834146ca02af8a4b.1640932151.git.gitgitgadget@gmail.com> > 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=