]> git.ipfire.org Git - thirdparty/git.git/commit
csum-file.c: use unsafe_hash_algo()
authorTaylor Blau <me@ttaylorr.com>
Thu, 23 Jan 2025 17:34:33 +0000 (12:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Jan 2025 18:28:17 +0000 (10:28 -0800)
commitf0c266af4ea7e4d9b84955f8fed8ee8cb009cbd8
treea3affce87a5d00bc9c5ee043febee5786dd511a3
parent7b081d2f70feb7eadd1e93f52146e5d68371451d
csum-file.c: use unsafe_hash_algo()

Instead of calling the unsafe_ hash function variants directly, make use
of the shared 'algop' pointer by initializing it to:

    f->algop = unsafe_hash_algo(the_hash_algo);

, thus making all calls use the unsafe variants directly.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
csum-file.c