diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-09-12 11:47:22 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-12 11:47:23 -0700 |
| commit | 04595eb4079e33496124a132832d28aba4a94dfc (patch) | |
| tree | 085ed52cf81c16d91e869e31e8ec4352f7c0a810 /t/unit-tests/lib-oid.h | |
| parent | 63b5fcdde90361195f7f6ade199c90d91e2ecf53 (diff) | |
| parent | a680635e05848f4428b4867b7e7ad0e07c94ae8b (diff) | |
Merge branch 'gt/unit-test-oid-array'
Another unit-test.
* gt/unit-test-oid-array:
t: port helper/test-oid-array.c to unit-tests/t-oid-array.c
Diffstat (limited to 't/unit-tests/lib-oid.h')
| -rw-r--r-- | t/unit-tests/lib-oid.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/unit-tests/lib-oid.h b/t/unit-tests/lib-oid.h index 8d2acca768..4e77c04bd2 100644 --- a/t/unit-tests/lib-oid.h +++ b/t/unit-tests/lib-oid.h @@ -13,5 +13,13 @@ * environment variable. */ int get_oid_arbitrary_hex(const char *s, struct object_id *oid); +/* + * Returns one of GIT_HASH_{SHA1, SHA256, UNKNOWN} based on the value of + * GIT_TEST_DEFAULT_HASH environment variable. The fallback value in the + * absence of GIT_TEST_DEFAULT_HASH is GIT_HASH_SHA1. It also uses + * check(algo != GIT_HASH_UNKNOWN) before returning to verify if the + * GIT_TEST_DEFAULT_HASH's value is valid or not. + */ +int init_hash_algo(void); #endif /* LIB_OID_H */ |
