Re: git-diff on touched files: bug or feature?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 1, 2007, 19:07 UTC
- Message-ID
- <7vvebz3wh3.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <87vebzkrid.fsf@wine.dyndns.org>
Alexandre Julliard <julliard@winehq.org> writes:
> .... For > instance in vc-git.el the workfile-unchanged-p function currently has > to rehash the file every time to see if it really changed, because we > can't afford to refresh the whole project at that point.
Maybe I am missing something. Why can't you "afford to"?
"update-index --refresh" looks at only the files whose cached stat information does indicate there might be chanegs. It does not rehash already up-to-date ones.