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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
59934417ff
commit
ebd73f50c6
2
t/.gitattributes
vendored
2
t/.gitattributes
vendored
@ -1,6 +1,6 @@
|
||||
t[0-9][0-9][0-9][0-9]/* -whitespace
|
||||
/chainlint/*.expect eol=lf
|
||||
/diff-lib/* eol=lf
|
||||
/lib-diff/* eol=lf
|
||||
/t0110/url-* binary
|
||||
/t3206/* eol=lf
|
||||
/t3900/*.txt eol=lf
|
||||
|
@ -7,7 +7,7 @@ test_description='Test built-in diff output engine.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
echo >path0 'Line 1
|
||||
Line 2
|
||||
|
@ -7,7 +7,7 @@ test_description='Test rename detection in diff engine.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
cat >path0 <<-\EOF &&
|
||||
|
@ -7,11 +7,11 @@ test_description='More rename detection
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
test_expect_success \
|
||||
'prepare reference tree' \
|
||||
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
|
||||
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
|
||||
echo frotz >rezrov &&
|
||||
git update-index --add COPYING rezrov &&
|
||||
tree=$(git write-tree) &&
|
||||
@ -99,7 +99,7 @@ test_expect_success \
|
||||
|
||||
test_expect_success \
|
||||
'prepare work tree once again' \
|
||||
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
|
||||
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
|
||||
git update-index --add --remove COPYING COPYING.1'
|
||||
|
||||
# tree has COPYING and rezrov. work tree has COPYING and COPYING.1,
|
||||
|
@ -10,7 +10,7 @@ copy of symbolic links, but should not produce rename/copy followed
|
||||
by an edit for them.
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
test_expect_success SYMLINKS \
|
||||
'prepare reference tree' \
|
||||
|
@ -6,10 +6,10 @@
|
||||
test_description='Same rename detection as t4003 but testing diff-raw.'
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
test_expect_success 'setup reference tree' '
|
||||
cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
|
||||
cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
|
||||
echo frotz >rezrov &&
|
||||
git update-index --add COPYING rezrov &&
|
||||
tree=$(git write-tree) &&
|
||||
@ -64,7 +64,7 @@ test_expect_success 'validate output from rename/copy detection (#2)' '
|
||||
# nows how to say Copy.
|
||||
|
||||
test_expect_success 'validate output from rename/copy detection (#3)' '
|
||||
cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
|
||||
cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
|
||||
git update-index --add --remove COPYING COPYING.1 &&
|
||||
|
||||
cat <<-EOF >expected &&
|
||||
|
@ -7,17 +7,17 @@ test_description='Rename interaction with pathspec.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
test_expect_success 'prepare reference tree' '
|
||||
mkdir path0 path1 &&
|
||||
cp "$TEST_DIRECTORY"/diff-lib/COPYING path0/COPYING &&
|
||||
cp "$TEST_DIRECTORY"/lib-diff/COPYING path0/COPYING &&
|
||||
git update-index --add path0/COPYING &&
|
||||
tree=$(git write-tree) &&
|
||||
echo $tree
|
||||
'
|
||||
|
||||
blob=$(git hash-object "$TEST_DIRECTORY/diff-lib/COPYING")
|
||||
blob=$(git hash-object "$TEST_DIRECTORY/lib-diff/COPYING")
|
||||
test_expect_success 'prepare work tree' '
|
||||
cp path0/COPYING path1/COPYING &&
|
||||
git update-index --add --remove path0/COPYING path1/COPYING
|
||||
|
@ -22,11 +22,11 @@ With -B, this should be detected as two complete rewrites.
|
||||
Further, with -B and -M together, these should turn into two renames.
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
test_expect_success setup '
|
||||
cat "$TEST_DIRECTORY"/diff-lib/README >file0 &&
|
||||
cat "$TEST_DIRECTORY"/diff-lib/COPYING >file1 &&
|
||||
cat "$TEST_DIRECTORY"/lib-diff/README >file0 &&
|
||||
cat "$TEST_DIRECTORY"/lib-diff/COPYING >file1 &&
|
||||
blob0_id=$(git hash-object file0) &&
|
||||
blob1_id=$(git hash-object file1) &&
|
||||
git update-index --add file0 file1 &&
|
||||
|
@ -7,11 +7,11 @@ test_description='Same rename detection as t4003 but testing diff-raw -z.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
test_expect_success \
|
||||
'prepare reference tree' \
|
||||
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
|
||||
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
|
||||
echo frotz >rezrov &&
|
||||
git update-index --add COPYING rezrov &&
|
||||
orig=$(git hash-object COPYING) &&
|
||||
@ -81,7 +81,7 @@ test_expect_success \
|
||||
|
||||
test_expect_success \
|
||||
'prepare work tree once again' \
|
||||
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
|
||||
'cat "$TEST_DIRECTORY"/lib-diff/COPYING >COPYING &&
|
||||
git update-index --add --remove COPYING COPYING.1'
|
||||
|
||||
git diff-index -z -C --find-copies-harder $tree >current
|
||||
|
@ -10,7 +10,7 @@ Prepare:
|
||||
path1/file1
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
test_expect_success \
|
||||
setup \
|
||||
|
@ -7,7 +7,7 @@ test_description='Test diff of symlinks.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
# Print the short OID of a symlink with the given name.
|
||||
symlink_oid () {
|
||||
|
@ -9,7 +9,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
||||
|
@ -7,7 +7,7 @@ test_description='Test special whitespace in diff engine.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
test_expect_success "Ray Lehtiniemi's example" '
|
||||
cat <<-\EOF >x &&
|
||||
|
@ -3,7 +3,7 @@
|
||||
test_description='difference in submodules'
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
test_expect_success setup '
|
||||
test_tick &&
|
||||
|
@ -3,7 +3,7 @@
|
||||
test_description='word diff colors'
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
cat >pre.simple <<-\EOF
|
||||
h(4)
|
||||
|
@ -6,7 +6,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
setup_helper () {
|
||||
one=$1 branch=$2 side=$3 &&
|
||||
|
@ -7,7 +7,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
# Compare two diff outputs. Ignore "index" lines, because we don't
|
||||
# care about SHA-1s or file modes.
|
||||
|
@ -7,7 +7,7 @@ test_description='Test --follow should always find copies hard in git log.
|
||||
|
||||
'
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
echo >path0 'Line 1
|
||||
Line 2
|
||||
|
@ -11,7 +11,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY/diff-lib.sh"
|
||||
. "$TEST_DIRECTORY/lib-diff.sh"
|
||||
|
||||
author='The Real Author <someguy@his.email.org>'
|
||||
|
||||
|
@ -8,7 +8,7 @@ GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/diff-lib.sh ;# test-lib chdir's into trash
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
verify_packs () {
|
||||
for p in .git/objects/pack/*.pack
|
||||
|
Loading…
Reference in New Issue
Block a user