summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-14 21:26:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-03-14 21:26:50 (GMT)
commit13b49f1e7463c46272c0b3b9b1952dc519086b6d (patch)
tree3d0f6d4dcf53afc524eac847f4a12204d134cbe3 /t/test-lib-functions.sh
parent0963008cbf266db8001521c87084cea353005020 (diff)
parent3c09d6845d253f9d8a75f3a36278c69e01b073e9 (diff)
downloadgit-13b49f1e7463c46272c0b3b9b1952dc519086b6d.zip
git-13b49f1e7463c46272c0b3b9b1952dc519086b6d.tar.gz
git-13b49f1e7463c46272c0b3b9b1952dc519086b6d.tar.bz2
Merge branch 'tg/index-v4-format'
* tg/index-v4-format: read-cache: add index.version config variable test-lib: allow setting the index format version introduce GIT_INDEX_VERSION environment variable
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index b333e3f..158e10a 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -32,6 +32,11 @@ test_set_editor () {
export EDITOR
}
+test_set_index_version () {
+ GIT_INDEX_VERSION="$1"
+ export GIT_INDEX_VERSION
+}
+
test_decode_color () {
awk '
function name(n) {