diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-01-16 12:07:47 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-01-16 12:07:47 -0800 |
| commit | ffd923868574a004ec20a80dbc3b813da9a93b08 (patch) | |
| tree | fb80c1309a6cd0528d7dcc77d20a18451ef278fc /csum-file.h | |
| parent | Merge branch 'ws/single-file-cone' (diff) | |
| parent | features: feature.manyFiles implies fast index writes (diff) | |
| download | git-ffd923868574a004ec20a80dbc3b813da9a93b08.tar.gz git-ffd923868574a004ec20a80dbc3b813da9a93b08.zip | |
Merge branch 'ds/omit-trailing-hash-in-index'
Introduce an optional configuration to allow the trailing hash that
protects the index file from bit flipping.
* ds/omit-trailing-hash-in-index:
features: feature.manyFiles implies fast index writes
test-lib-functions: add helper for trailing hash
read-cache: add index.skipHash config option
hashfile: allow skipping the hash function
Diffstat (limited to 'csum-file.h')
| -rw-r--r-- | csum-file.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/csum-file.h b/csum-file.h index 0d29f528fb..793a59da12 100644 --- a/csum-file.h +++ b/csum-file.h @@ -20,6 +20,13 @@ struct hashfile { size_t buffer_len; unsigned char *buffer; unsigned char *check_buffer; + + /** + * If non-zero, skip_hash indicates that we should + * not actually compute the hash for this hashfile and + * instead only use it as a buffered write. + */ + int skip_hash; }; /* Checkpoint */ |
