aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-tool.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-01-31 10:05:46 -0800
committerJunio C Hamano <gitster@pobox.com>2025-01-31 10:05:46 -0800
commit0cbcba54550b1ea108e977c24b835e07b96b1c0e (patch)
tree6cb525c7fdb38ee631d741c2f32bcaf2fffa5f07 /t/helper/test-tool.h
parentThe fifth batch (diff)
parenthash.h: drop unsafe_ function variants (diff)
downloadgit-0cbcba54550b1ea108e977c24b835e07b96b1c0e.tar.gz
git-0cbcba54550b1ea108e977c24b835e07b96b1c0e.zip
Merge branch 'tb/unsafe-hash-cleanup' into ps/hash-cleanup
* tb/unsafe-hash-cleanup: hash.h: drop unsafe_ function variants csum-file: introduce hashfile_checkpoint_init() t/helper/test-hash.c: use unsafe_hash_algo() csum-file.c: use unsafe_hash_algo() hash.h: introduce `unsafe_hash_algo()` csum-file.c: extract algop from hashfile_checksum_valid() csum-file: store the hash algorithm as a struct field t/helper/test-tool: implement sha1-unsafe helper
Diffstat (limited to 't/helper/test-tool.h')
-rw-r--r--t/helper/test-tool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h
index 9cfc5da6e5..fb4c609254 100644
--- a/t/helper/test-tool.h
+++ b/t/helper/test-tool.h
@@ -64,6 +64,7 @@ int cmd__scrap_cache_tree(int argc, const char **argv);
int cmd__serve_v2(int argc, const char **argv);
int cmd__sha1(int argc, const char **argv);
int cmd__sha1_is_sha1dc(int argc, const char **argv);
+int cmd__sha1_unsafe(int argc, const char **argv);
int cmd__sha256(int argc, const char **argv);
int cmd__sigchain(int argc, const char **argv);
int cmd__simple_ipc(int argc, const char **argv);
@@ -82,6 +83,6 @@ int cmd__windows_named_pipe(int argc, const char **argv);
#endif
int cmd__write_cache(int argc, const char **argv);
-int cmd_hash_impl(int ac, const char **av, int algo);
+int cmd_hash_impl(int ac, const char **av, int algo, int unsafe);
#endif