Re: speed of git reset -- file
- From
Jeff King <peff@peff.net>
- Date
- May 31, 2011, 22:13 UTC
- Message-ID
- <20110531221332.GA15217@sigill.intra.peff.net>
- In-Reply-To
- <7vpqmyilj6.fsf@alter.siamese.dyndns.org>
On Tue, May 31, 2011 at 02:54:05PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes: > > > Conceptually, no, I don't think so. > > Hmm, don't we have to say like all other reset types which paths are > dirty, i.e. > > $ git reset HEAD -- diff.c > Unstaged changes after reset: > M diff.c > M diff.h > > which would mean we would need to refresh the index anyway?
True, though if you pass "-q", we could bypass that step.
-Peff