RE: git commit results in many lstat()s
- From
Gumbel, Matthew K <matthew.k.gumbel@intel.com>
- Date
- Feb 1, 2017, 22:26 UTC
- Message-ID
- <DA0A42D68346B1469147552440A645039A9C57D6@ORSMSX115.amr.corp.intel.com>
- In-Reply-To
- <xmqq8tppo92x.fsf@gitster.mtv.corp.google.com>
"Junio C Hamano" <jch2355@gmail.com> writes:
> There probably are other things that can be optimized.
Yes, I think that when the user passes --only flag to git-commit, then git does not need to call refresh_cache() in prepare_index() in builtin/commit.c.
I may experiment with that. Do you see any downside or negative side-effects?
Matt