Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-04-24 08:07:49 +0300
committerJunio C Hamano <gitster@pobox.com>2017-04-24 08:07:49 +0300
commitcdfe138b360cd10f74ef9d2d031cb10447cb3338 (patch)
tree44a8d80a209a2f490ae0575c634ea50e7a6e3ac7 /cache.h
parent8868ba19626a72d5883241c36fd5477897ef8dd1 (diff)
parenta33fc72fe911fdb8e284c94e08e8f1dafe4d3187 (diff)
Merge branch 'jh/verify-index-checksum-only-in-fsck'
The index file has a trailing SHA-1 checksum to detect file corruption, and historically we checked it every time the index file is used. Omit the validation during normal use, and instead verify only in "git fsck". * jh/verify-index-checksum-only-in-fsck: read-cache: force_verify_index_checksum
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 75cce814bd..ef0fe43a9d 100644
--- a/cache.h
+++ b/cache.h
@@ -710,6 +710,8 @@ extern void update_index_if_able(struct index_state *, struct lock_file *);
extern int hold_locked_index(struct lock_file *, int);
extern void set_alternate_index_output(const char *);
+extern int verify_index_checksum;
+
/* Environment bits from configuration mechanism */
extern int trust_executable_bit;
extern int trust_ctime;