]> git.ipfire.org Git - thirdparty/git.git/commit
Use legacy hash for legacy formats
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 1 Jul 2025 21:22:30 +0000 (21:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 21:58:24 +0000 (14:58 -0700)
commit667d251a04c1dd769fb5a71bbe94d6d15ae594f1
tree46195a62ed6dd38d4046bd4a4edfb569c2aa3eb9
parentdc9c16c2fc8222364277696cb4d70782281d3c06
Use legacy hash for legacy formats

We have a large variety of data formats and protocols where no hash
algorithm was defined and the default was assumed to always be SHA-1.
Instead of explicitly stating SHA-1, let's use the constant to represent
the legacy hash algorithm (which is still SHA-1) so that it's clear
for documentary purposes that it's a legacy fallback option and not an
intentional choice to use SHA-1.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
bundle.c
connect.c
fetch-pack.c
pkt-line.c
remote-curl.c
serve.c
setup.c
transport.c