Skip to content

Commit ebd73f5

Browse files
avargitster
authored andcommitted
test libs: rename "diff-lib" to "lib-diff"
Rename the "diff-lib" to "lib-diff". With this rename and preceding commits there is no remaining t/*lib* which doesn't follow the convention of being called t/lib-*. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5993441 commit ebd73f5

23 files changed

+30
-30
lines changed

t/.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
t[0-9][0-9][0-9][0-9]/* -whitespace
22
/chainlint/*.expect eol=lf
3-
/diff-lib/* eol=lf
3+
/lib-diff/* eol=lf
44
/t0110/url-* binary
55
/t3206/* eol=lf
66
/t3900/*.txt eol=lf
File renamed without changes.
File renamed without changes.
File renamed without changes.

t/t4000-diff-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_description='Test built-in diff output engine.
77
88
'
99
. ./test-lib.sh
10-
. "$TEST_DIRECTORY"/diff-lib.sh
10+
. "$TEST_DIRECTORY"/lib-diff.sh
1111

1212
echo >path0 'Line 1
1313
Line 2

t/t4001-diff-rename.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_description='Test rename detection in diff engine.
77
88
'
99
. ./test-lib.sh
10-
. "$TEST_DIRECTORY"/diff-lib.sh
10+
. "$TEST_DIRECTORY"/lib-diff.sh
1111

1212
test_expect_success 'setup' '
1313
cat >path0 <<-\EOF &&

t/t4003-diff-rename-1.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ test_description='More rename detection
77
88
'
99
. ./test-lib.sh
10-
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
10+
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
1111

1212
test_expect_success \
1313
'prepare reference tree' \
14-
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
14+
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
1515
echo frotz >rezrov &&
1616
git update-index --add COPYING rezrov &&
1717
tree=$(git write-tree) &&
@@ -99,7 +99,7 @@ test_expect_success \
9999

100100
test_expect_success \
101101
'prepare work tree once again' \
102-
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
102+
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
103103
git update-index --add --remove COPYING COPYING.1'
104104

105105
# tree has COPYING and rezrov. work tree has COPYING and COPYING.1,

t/t4004-diff-rename-symlink.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ copy of symbolic links, but should not produce rename/copy followed
1010
by an edit for them.
1111
'
1212
. ./test-lib.sh
13-
. "$TEST_DIRECTORY"/diff-lib.sh
13+
. "$TEST_DIRECTORY"/lib-diff.sh
1414

1515
test_expect_success SYMLINKS \
1616
'prepare reference tree' \

t/t4005-diff-rename-2.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
test_description='Same rename detection as t4003 but testing diff-raw.'
77

88
. ./test-lib.sh
9-
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
9+
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
1010

1111
test_expect_success 'setup reference tree' '
12-
cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
12+
cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
1313
echo frotz >rezrov &&
1414
git update-index --add COPYING rezrov &&
1515
tree=$(git write-tree) &&
@@ -64,7 +64,7 @@ test_expect_success 'validate output from rename/copy detection (#2)' '
6464
# nows how to say Copy.
6565

6666
test_expect_success 'validate output from rename/copy detection (#3)' '
67-
cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
67+
cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
6868
git update-index --add --remove COPYING COPYING.1 &&
6969
7070
cat <<-EOF >expected &&

t/t4007-rename-3.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ test_description='Rename interaction with pathspec.
77
88
'
99
. ./test-lib.sh
10-
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
10+
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
1111

1212
test_expect_success 'prepare reference tree' '
1313
mkdir path0 path1 &&
14-
cp "$TEST_DIRECTORY"/diff-lib/COPYING path0/COPYING &&
14+
cp "$TEST_DIRECTORY"/lib-diff/COPYING path0/COPYING &&
1515
git update-index --add path0/COPYING &&
1616
tree=$(git write-tree) &&
1717
echo $tree
1818
'
1919

20-
blob=$(git hash-object "$TEST_DIRECTORY/diff-lib/COPYING")
20+
blob=$(git hash-object "$TEST_DIRECTORY/lib-diff/COPYING")
2121
test_expect_success 'prepare work tree' '
2222
cp path0/COPYING path1/COPYING &&
2323
git update-index --add --remove path0/COPYING path1/COPYING

0 commit comments

Comments
 (0)