Skip to content

Commit 762ccf9

Browse files
avargitster
authored andcommitted
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 5d9fc88 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9e9c7dd commit 762ccf9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

t/t2104-update-index-skip-worktree.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ test_description='skip-worktree bit test'
99

1010
sane_unset GIT_TEST_SPLIT_INDEX
1111

12+
test_set_index_version () {
13+
GIT_INDEX_VERSION="$1"
14+
export GIT_INDEX_VERSION
15+
}
16+
1217
test_set_index_version 3
1318

1419
cat >expect.full <<EOF

t/test-lib-functions.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ test_set_editor () {
3232
export EDITOR
3333
}
3434

35-
test_set_index_version () {
36-
GIT_INDEX_VERSION="$1"
37-
export GIT_INDEX_VERSION
38-
}
39-
4035
test_decode_color () {
4136
awk '
4237
function name(n) {

0 commit comments

Comments
 (0)