aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-index-version.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-09-12 12:32:35 -0700
committerJunio C Hamano <gitster@pobox.com>2023-09-12 16:21:53 -0700
commit83708f80fc5fc7202df0bf3c0951f85d31249fe3 (patch)
treee67aaee5bfd340024eb36f839ee7c96a263a1f70 /t/helper/test-index-version.c
parent606e088d5d9af2393b4b05a8a180162c129cd734 (diff)
downloadgit-83708f80fc5fc7202df0bf3c0951f85d31249fe3.tar.gz
test-tool: retire "index-version"
As "git update-index --show-index-version" can do the same thing, the 'index-version' subcommand in the test-tool lost its reason to exist. Remove it and replace its use with the end-user facing 'git update-index --show-index-version'. Helped-by: Linus Arver <linusa@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-index-version.c')
-rw-r--r--t/helper/test-index-version.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/t/helper/test-index-version.c b/t/helper/test-index-version.c
deleted file mode 100644
index a06c45c1f8..0000000000
--- a/t/helper/test-index-version.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "test-tool.h"
-#include "cache.h"
-
-int cmd__index_version(int argc UNUSED, const char **argv UNUSED)
-{
- struct cache_header hdr;
- int version;
-
- memset(&hdr,0,sizeof(hdr));
- if (read(0, &hdr, sizeof(hdr)) != sizeof(hdr))
- return 0;
- version = ntohl(hdr.hdr_version);
- printf("%d\n", version);
- return 0;
-}