]> Kevux Git Server - rit/commit
t4042: choose the built-in hash outside of a repo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 1 Jul 2025 21:22:34 +0000 (21:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 21:58:25 +0000 (14:58 -0700)
commitf957ce078f61266b3212b88d9c357a1b7f071a6f
tree37c4c955be13a3bb2e330d8653d528581b6d5bb2
parent6866b422608ebfd25ba65935fd2d5378029ec3ea
t4042: choose the built-in hash outside of a repo

Right now, the built-in default hash is always SHA-1, but that will
change in a future commit.  Instead of assuming that operating outside
of a repository will always use SHA-1, provide constants for both
algorithms and then simply ask test_oid for the built-in hash instead,
which will always be correct.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4042-diff-textconv-caching.sh