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
This commit is contained in:
Junio C Hamano
2017-04-23 22:07:49 -07:00
4 changed files with 23 additions and 0 deletions

View File

@ -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;