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:34 -0700
committerJunio C Hamano <gitster@pobox.com>2023-09-12 16:21:53 -0700
commit606e088d5d9af2393b4b05a8a180162c129cd734 (patch)
tree6684eaf70d5ce0a78944896aaae3a3e1f2c23405 /t/helper/test-index-version.c
parentupdate-index doc: v4 is OK with JGit and libgit2 (diff)
downloadgit-606e088d5d9af2393b4b05a8a180162c129cd734.tar.gz
git-606e088d5d9af2393b4b05a8a180162c129cd734.zip
update-index: add --show-index-version
"git update-index --index-version N" is used to set the index format version to a specific version, but there was no way to query the current version used in the on-disk index file. Teach the command a new "--show-index-version" option, and also teach the "--index-version N" option to report what the version was when run with the "--verbose" option. 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')
0 files changed, 0 insertions, 0 deletions