summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-01-23 12:34:36 -0500
committerJunio C Hamano <gitster@pobox.com>2025-01-23 10:28:17 -0800
commit3339180b28da5138eacb6b64f89c03e21493a73d (patch)
tree929f84e6ade42a2db28bfaa4b5b2cbd9e29069eb /commit.c
parentf0c266af4ea7e4d9b84955f8fed8ee8cb009cbd8 (diff)
t/helper/test-hash.c: use unsafe_hash_algo()
Remove a series of conditionals within the shared cmd_hash_impl() helper that powers the 'sha1' and 'sha1-unsafe' helpers. Instead, replace them with a single conditional that transforms the specified hash algorithm into its unsafe variant. Then all subsequent calls can directly use whatever function it wants to call without having to decide between the safe and unsafe variants. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions