diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-08-19 16:14:52 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-08-19 16:14:53 -0700 |
| commit | 6f8a2138b96c8f33ebbe2055a9444ada40a8e1c8 (patch) | |
| tree | 8ed6c5420da5f4be6a398ae8da7d30767c2258be /Documentation/technical/commit-graph-format.txt | |
| parent | Merge branch 'ma/sha-256-docs' (diff) | |
| parent | multi-pack-index: use hash version byte (diff) | |
| download | git-6f8a2138b96c8f33ebbe2055a9444ada40a8e1c8.tar.gz git-6f8a2138b96c8f33ebbe2055a9444ada40a8e1c8.zip | |
Merge branch 'ds/sha256-leftover-bits'
midx and commit-graph files now use the byte defined in their file
format specification for identifying the hash function used for
object names.
* ds/sha256-leftover-bits:
multi-pack-index: use hash version byte
commit-graph: use the "hash version" byte
t/README: document GIT_TEST_DEFAULT_HASH
Diffstat (limited to 'Documentation/technical/commit-graph-format.txt')
| -rw-r--r-- | Documentation/technical/commit-graph-format.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/technical/commit-graph-format.txt b/Documentation/technical/commit-graph-format.txt index 440541045d..6ddbceba15 100644 --- a/Documentation/technical/commit-graph-format.txt +++ b/Documentation/technical/commit-graph-format.txt @@ -42,8 +42,13 @@ HEADER: 1-byte version number: Currently, the only valid version is 1. - 1-byte Hash Version (1 = SHA-1) - We infer the hash length (H) from this value. + 1-byte Hash Version + We infer the hash length (H) from this value: + 1 => SHA-1 + 2 => SHA-256 + If the hash type does not match the repository's hash algorithm, the + commit-graph file should be ignored with a warning presented to the + user. 1-byte number (C) of "chunks" |
