aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-tool.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2023-10-02 18:54:57 +0200
committerJunio C Hamano <gitster@pobox.com>2023-10-02 14:54:29 -0700
commit66589f89ab8bf19f79fa9e9ec156bce43ed70e53 (patch)
treeeb738fa15f7ada1368545741296d819a7ef2ea44 /t/helper/test-tool.h
parentpack-objects: allow `--filter` without `--stdout` (diff)
downloadgit-66589f89ab8bf19f79fa9e9ec156bce43ed70e53.tar.gz
git-66589f89ab8bf19f79fa9e9ec156bce43ed70e53.zip
t/helper: add 'find-pack' test-tool
In a following commit, we will make it possible to separate objects in different packfiles depending on a filter. To make sure that the right objects are in the right packs, let's add a new test-tool that can display which packfile(s) a given object is in. Let's also make it possible to check if a given object is in the expected number of packfiles with a `--check-count <n>` option. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.h')
-rw-r--r--t/helper/test-tool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h
index a641c3a81d..f134f96b97 100644
--- a/t/helper/test-tool.h
+++ b/t/helper/test-tool.h
@@ -25,6 +25,7 @@ int cmd__dump_reftable(int argc, const char **argv);
int cmd__env_helper(int argc, const char **argv);
int cmd__example_decorate(int argc, const char **argv);
int cmd__fast_rebase(int argc, const char **argv);
+int cmd__find_pack(int argc, const char **argv);
int cmd__fsmonitor_client(int argc, const char **argv);
int cmd__genrandom(int argc, const char **argv);
int cmd__genzeros(int argc, const char **argv);