Re: [PATCH] Make builtin-reset.c use parse_options.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 2, 2008, 16:32 UTC
- Message-ID
- <alpine.LSU.1.00.0803021631210.22527@racer.site>
- In-Reply-To
- <1b46aba20803020437p2a5128a5wfee3e98c32c1a610@mail.gmail.com>
Hi,
On Sun, 2 Mar 2008, Carlos Rica wrote:
Show 11 quoted lines
> On Sun, Mar 2, 2008 at 3:53 AM, Junio C Hamano <gitster@pobox.com> wrote: > > Carlos Rica <jasampler@gmail.com> writes: > > > > > Signed-off-by: Carlos Rica <jasampler@gmail.com> > > > > Hmmm. "git reset -h" now defaults to --hard? > > > > It somehow feels a bit risky for new people. I dunno. > > > > Option -h just prints the options and exits.
>From the original patch:
+ OPT_SET_INT(0, "hard", &reset_type, + "reset HEAD, index and working tree", HARD),
It might be that I am misreading something, but I gather that Junio missed that there is no short option here.
Junio, am I right?
Ciao, Dscho