diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-09-12 12:32:35 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-09-12 16:21:53 -0700 |
| commit | 83708f80fc5fc7202df0bf3c0951f85d31249fe3 (patch) | |
| tree | e67aaee5bfd340024eb36f839ee7c96a263a1f70 /t/helper/test-index-version.c | |
| parent | 606e088d5d9af2393b4b05a8a180162c129cd734 (diff) | |
| download | git-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.c | 15 |
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; -} |
