From: Ævar Arnfjörð Bjarmason Date: Tue, 9 Feb 2021 21:41:50 +0000 (+0100) Subject: test-lib-functions: move test_set_index_version() to its user X-Git-Tag: v2.31.0-rc0~24^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3;p=thirdparty%2Fgit.git test-lib-functions: move test_set_index_version() to its user Move the test_set_index_version() function to its only user. This function has only been used in one place since its addition in 5d9fc888b48 (test-lib: allow setting the index format version, 2014-02-23). Let's have that test script define it. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/t/t2104-update-index-skip-worktree.sh b/t/t2104-update-index-skip-worktree.sh index 7e2e7dd4ae..30666fc70d 100755 --- a/t/t2104-update-index-skip-worktree.sh +++ b/t/t2104-update-index-skip-worktree.sh @@ -9,6 +9,11 @@ test_description='skip-worktree bit test' sane_unset GIT_TEST_SPLIT_INDEX +test_set_index_version () { + GIT_INDEX_VERSION="$1" + export GIT_INDEX_VERSION +} + test_set_index_version 3 cat >expect.full <