Re: Re* Bug report: reset -p HEAD
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 25, 2013, 16:54 UTC
- Message-ID
- <xmqqiowljnoj.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20131025042421.GB11810@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> 3. Teach add--interactive to recognize the empty tree sha1 as an > "unstage" path. > > I kind of like (3). At first glance, it is wrong; we will also treat > "git reset -p $(git hash-object -t tree /dev/null)" as if "HEAD" had > been passed. But if you are explicitly passing the empty tree like that, > I think saying "unstage" makes a lot of sense.
Thanks; makes sense after twisting my mind somewhat, exactly for the reason you stated here ;-)