Enable minimal stat checking
commitc08e4d5b5cfa9f692cb8c81e5e9615e330f299c2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 22 Jan 2013 07:49:22 +0000 (22 08:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jan 2013 17:33:16 +0000 (22 09:33 -0800)
tree98aed4694ad319a814d7545c9a130561dc5d71db
parente9abef6289706f77186ed852d579c7b222f06502
Enable minimal stat checking

Specifically the fields uid, gid, ctime, ino and dev are set to zero
by JGit. Other implementations, eg. Git in cygwin are allegedly also
somewhat incompatible with Git For Windows and on *nix platforms
the resolution of the timestamps may differ.

Any stat checking by git will then need to check content, which may
be very slow, particularly on Windows. Since mtime and size
is typically enough we should allow the user to tell git to avoid
checking these fields if they are set to zero in the index.

This change introduces a core.checkstat config option where the
the user can select to check all fields (default), or just size
and the whole second part of mtime (minimal).

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
cache.h
config.c
environment.c
read-cache.c