summaryrefslogtreecommitdiff
path: root/t/t2104-update-index-skip-worktree.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-09 21:41:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-10 21:54:34 (GMT)
commit762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3 (patch)
treed2fb8f225bdb8a378acdd601924a8cbd6a93e649 /t/t2104-update-index-skip-worktree.sh
parent9e9c7dd6f13e9a5027538854132b9f6b6ddb6be2 (diff)
downloadgit-762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3.zip
git-762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3.tar.gz
git-762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3.tar.bz2
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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2104-update-index-skip-worktree.sh')
-rwxr-xr-xt/t2104-update-index-skip-worktree.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t2104-update-index-skip-worktree.sh b/t/t2104-update-index-skip-worktree.sh
index 7e2e7dd..30666fc 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 <<EOF