Re: performance problem: "git commit filename"
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jan 13, 2008, 17:24 UTC
- Message-ID
- <alpine.LFD.1.00.0801130922030.2806@woody.linux-foundation.org>
- In-Reply-To
- <7vd4s6qal0.fsf@gitster.siamese.dyndns.org>
On Sun, 13 Jan 2008, Junio C Hamano wrote:
> > The attached is a quick and dirty hack which may or may not > help. It all looks sane, this also is some core code, and meant > only for discussion and not application.
I don't think this will help.
You never set CE_UPTODATE, except in the "fill_stat_cache_info()" function, but that one will never be called for an old file that already matched the stat.
So at a minimum, you should also make ie_match_stat() set CE_UPTODATE if it matches. Or something.
Linus