aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-07-28 08:31:28 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-28 23:26:25 -0700
commit1ce4790bf5eeceb212f003fffcb36069c0ebb45e (patch)
tree7cdb36f5416b0d94815c351c356ea16b7c4d1887 /cache.h
parentdf57accb46695b50e2db94424e9d4ebfed0694c8 (diff)
downloadgit-1ce4790bf5eeceb212f003fffcb36069c0ebb45e.tar.gz
git-1ce4790bf5eeceb212f003fffcb36069c0ebb45e.tar.xz
Make use of stat.ctime configurable
A new configuration variable 'core.trustctime' is introduced to allow ignoring st_ctime information when checking if paths in the working tree has changed, because there are situations where it produces too much false positives. Like when file system crawlers keep changing it when scanning and using the ctime for marking scanned files. The default is to notice ctime changes. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 4b6c0a6c5..2475de9fa 100644
--- a/cache.h
+++ b/cache.h
@@ -423,6 +423,7 @@ extern int delete_ref(const char *, const unsigned char *sha1);
/* Environment bits from configuration mechanism */
extern int trust_executable_bit;
+extern int trust_ctime;
extern int quote_path_fully;
extern int has_symlinks;
extern int ignore_case;