Re: [PATCH] Make builtin-reset.c use parse_options.
- From
- Carlos Rica <jasampler@gmail.com>
- Date
- Mar 2, 2008, 12:54 UTC
- Message-ID
- <1b46aba20803020454v322f061bi4f34a737e9e2b7f3@mail.gmail.com>
- In-Reply-To
- <20080302094031.GA2973@steel.home>
On Sun, Mar 2, 2008 at 10:40 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 18 quoted lines
> Carlos Rica, Sat, Mar 01, 2008 17:29:38 +0100:
>
> > @@ -169,40 +173,31 @@ static const char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
> >
> > int cmd_reset(int argc, const char **argv, const char *prefix)
> > {
> > - int i = 1, reset_type = NONE, update_ref_status = 0, quiet = 0;
> > + int i = 0, reset_type = NONE, update_ref_status = 0, quiet = 0;
> > const char *rev = "HEAD";
> > unsigned char sha1[20], *orig = NULL, sha1_orig[20],
> > *old_orig = NULL, sha1_old_orig[20];
> > struct commit *commit;
> > char *reflog_action, msg[1024];
> > + struct option options[] = {
>
> "static const"?
>
>"static const" what? options? cmd_reset? reset_type_names?