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

t/t4008-diff-break-rewrite.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ With -B, this should be detected as two complete rewrites.
2222
Further, with -B and -M together, these should turn into two renames.
2323
'
2424
. ./test-lib.sh
25-
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
25+
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
2626

2727
test_expect_success setup '
28-
cat "$TEST_DIRECTORY"/diff-lib/README >file0 &&
29-
cat "$TEST_DIRECTORY"/diff-lib/COPYING >file1 &&
28+
cat "$TEST_DIRECTORY"/lib-diff/README >file0 &&
29+
cat "$TEST_DIRECTORY"/lib-diff/COPYING >file1 &&
3030
blob0_id=$(git hash-object file0) &&
3131
blob1_id=$(git hash-object file1) &&
3232
git update-index --add file0 file1 &&

t/t4009-diff-rename-4.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ test_description='Same rename detection as t4003 but testing diff-raw -z.
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
orig=$(git hash-object COPYING) &&
@@ -81,7 +81,7 @@ test_expect_success \
8181

8282
test_expect_success \
8383
'prepare work tree once again' \
84-
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
84+
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
8585
git update-index --add --remove COPYING COPYING.1'
8686

8787
git diff-index -z -C --find-copies-harder $tree >current

t/t4010-diff-pathspec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Prepare:
1010
path1/file1
1111
'
1212
. ./test-lib.sh
13-
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
13+
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
1414

1515
test_expect_success \
1616
setup \

t/t4011-diff-symlink.sh

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

1212
# Print the short OID of a symlink with the given name.
1313
symlink_oid () {

t/t4013-diff-various.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
99
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1010

1111
. ./test-lib.sh
12-
. "$TEST_DIRECTORY"/diff-lib.sh
12+
. "$TEST_DIRECTORY"/lib-diff.sh
1313

1414
test_expect_success setup '
1515

t/t4015-diff-whitespace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_description='Test special whitespace 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 "Ray Lehtiniemi's example" '
1313
cat <<-\EOF >x &&

t/t4027-diff-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
test_description='difference in submodules'
44

55
. ./test-lib.sh
6-
. "$TEST_DIRECTORY"/diff-lib.sh
6+
. "$TEST_DIRECTORY"/lib-diff.sh
77

88
test_expect_success setup '
99
test_tick &&

t/t4034-diff-words.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
test_description='word diff colors'
44

55
. ./test-lib.sh
6-
. "$TEST_DIRECTORY"/diff-lib.sh
6+
. "$TEST_DIRECTORY"/lib-diff.sh
77

88
cat >pre.simple <<-\EOF
99
h(4)

t/t4038-diff-combined.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
66
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
77

88
. ./test-lib.sh
9-
. "$TEST_DIRECTORY"/diff-lib.sh
9+
. "$TEST_DIRECTORY"/lib-diff.sh
1010

1111
setup_helper () {
1212
one=$1 branch=$2 side=$3 &&

t/t4061-diff-indent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
77
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
88

99
. ./test-lib.sh
10-
. "$TEST_DIRECTORY"/diff-lib.sh
10+
. "$TEST_DIRECTORY"/lib-diff.sh
1111

1212
# Compare two diff outputs. Ignore "index" lines, because we don't
1313
# care about SHA-1s or file modes.

t/t4206-log-follow-harder-copies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_description='Test --follow should always find copies hard in git log.
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/t7501-commit-basic-functionality.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
1111
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
1212

1313
. ./test-lib.sh
14-
. "$TEST_DIRECTORY/diff-lib.sh"
14+
. "$TEST_DIRECTORY/lib-diff.sh"
1515

1616
author='The Real Author <[email protected]>'
1717

t/t9300-fast-import.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
88
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
99

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

1313
verify_packs () {
1414
for p in .git/objects/pack/*.pack

0 commit comments

Comments
 (0)