diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2025-07-01 21:22:28 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-07-01 14:58:23 -0700 |
commit | 1f68f3da877a91fefd6cc84b79986af2ef73d21e (patch) | |
tree | 82b602d8a29a60a0da28a7358c071c180daf1a06 /builtin/commit.c | |
parent | ca6daa1368eb9b0b48f64ef57907821318d7971c (diff) |
hash: add a constant for the legacy hash algorithm
We have a a variety of uses of GIT_HASH_SHA1 littered throughout our
code. Some of these really mean to represent specifically SHA-1, but
some actually represent the original hash algorithm used in Git which is
implied by older, legacy formats and protocols which do not contain hash
information. For instance, the bundle v1 and v2 formats do not contain
hash algorithm information, and thus SHA-1 is implied by the use of
these formats.
Add a constant for documentary purposes which indicates this value. It
will always be the same as SHA-1, since this is an essential part of
these formats, but its use indicates this particular reason and not any
other reason why SHA-1 might be used.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions