aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-02-09 22:41:50 +0100
committerJunio C Hamano <gitster@pobox.com>2021-02-10 13:54:34 -0800
commit762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3 (patch)
treed2fb8f225bdb8a378acdd601924a8cbd6a93e649 /t/test-lib-functions.sh
parenttest lib: change "error" to "BUG" as appropriate (diff)
downloadgit-762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3.tar.gz
git-762ccf9906a946b4ba6d9a1b97b6a6b465f02ac3.zip
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/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 0d40f8a598..728bdf9468 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -32,11 +32,6 @@ test_set_editor () {
export EDITOR
}
-test_set_index_version () {
- GIT_INDEX_VERSION="$1"
- export GIT_INDEX_VERSION
-}
-
test_decode_color () {
awk '
function name(n) {