Re: cygwin, 44k files: how to commit only index?
- From
Alex Riesen <fork0@t-online.de>
- Date
- Dec 8, 2006, 05:27 UTC
- Message-ID
- <20061208052705.GA4318@steel.home>
- In-Reply-To
- <7vr6vbqqzh.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano, Thu, Dec 07, 2006 23:29:54 +0100:
Show 7 quoted lines
> > But aside from me trying ignoreState, can anyone help me with that > > question regarding checking if the index is any different from HEAD? > > Comparing index and HEAD should be cheap on a system with slow > lstat(), I think, as "git-diff-index --cached HEAD" should just > ignore the working tree altogether. Is that what you want? >
yes, except that it'll compare the whole trees. Could I make it stop at first mismatch? "-q|--quiet" for git-diff-index perhaps? It's just not only stat, but also, open, read, mmap (yes, I try to use it for packs) and close are really slow here as well.