Skip to content

Commit fa8baa4

Browse files
committed
Merge branch 'jc/diff-test-updates'
Test clean-up. * jc/diff-test-updates: test_ln_s_add: refresh stat info of fake symbolic links t4008: modernise style t/diff-lib: check exact object names in compare_diff_raw tests: do not borrow from COPYING and README from the real source t4010: correct expected object names t9300: correct expected object names t4008: correct stale comments
2 parents 8a6444d + 817d03e commit fa8baa4

11 files changed

+550
-175
lines changed

t/diff-lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:
22

3-
sanitize_diff_raw='/^:/s/ '"$_x40"' '"$_x40"' \([A-Z]\)[0-9]* / X X \1# /'
3+
sanitize_diff_raw='/^:/s/ '"\($_x40\)"' '"\($_x40\)"' \([A-Z]\)[0-9]* / \1 \2 \3# /'
44
compare_diff_raw () {
55
# When heuristics are improved, the score numbers would change.
66
# Ignore them while comparing.

t/diff-lib/COPYING

+361
Large diffs are not rendered by default.

t/diff-lib/README

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
////////////////////////////////////////////////////////////////
2+
3+
GIT - the stupid content tracker
4+
5+
////////////////////////////////////////////////////////////////
6+
7+
"git" can mean anything, depending on your mood.
8+
9+
- random three-letter combination that is pronounceable, and not
10+
actually used by any common UNIX command. The fact that it is a
11+
mispronunciation of "get" may or may not be relevant.
12+
- stupid. contemptible and despicable. simple. Take your pick from the
13+
dictionary of slang.
14+
- "global information tracker": you're in a good mood, and it actually
15+
works for you. Angels sing, and a light suddenly fills the room.
16+
- "goddamn idiotic truckload of sh*t": when it breaks
17+
18+
Git is a fast, scalable, distributed revision control system with an
19+
unusually rich command set that provides both high-level operations
20+
and full access to internals.
21+
22+
Git is an Open Source project covered by the GNU General Public License.
23+
It was originally written by Linus Torvalds with help of a group of
24+
hackers around the net. It is currently maintained by Junio C Hamano.
25+
26+
Please read the file INSTALL for installation instructions.
27+
See Documentation/tutorial.txt to get started, then see
28+
Documentation/everyday.txt for a useful minimum set of commands,
29+
and "man git-commandname" for documentation of each command.
30+
CVS users may also want to read Documentation/cvs-migration.txt.
31+
32+
Many Git online resources are accessible from http://git.or.cz/
33+
including full documentation and Git related tools.
34+
35+
The user discussion and development of Git take place on the Git
36+
mailing list -- everyone is welcome to post bug reports, feature
37+
requests, comments and patches to [email protected]. To subscribe
38+
to the list, send an email with just "subscribe git" in the body to
39+
[email protected]. The mailing list archives are available at
40+
http://marc.theaimsgroup.com/?l=git and other archival sites.
41+
42+
The messages titled "A note from the maintainer", "What's in
43+
git.git (stable)" and "What's cooking in git.git (topics)" and
44+
the discussion following them on the mailing list give a good
45+
reference for project status, development direction and
46+
remaining tasks.

t/t4003-diff-rename-1.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_description='More rename detection
1111

1212
test_expect_success \
1313
'prepare reference tree' \
14-
'cat "$TEST_DIRECTORY"/../COPYING >COPYING &&
14+
'cat "$TEST_DIRECTORY"/diff-lib/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"/../COPYING >COPYING &&
102+
'cat "$TEST_DIRECTORY"/diff-lib/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/t4005-diff-rename-2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_description='Same rename detection as t4003 but testing diff-raw.
1111

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

7272
test_expect_success \
7373
'prepare work tree once again' \
74-
'cat "$TEST_DIRECTORY"/../COPYING >COPYING &&
74+
'cat "$TEST_DIRECTORY"/diff-lib/COPYING >COPYING &&
7575
git update-index --add --remove COPYING COPYING.1'
7676

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

t/t4007-rename-3.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_description='Rename interaction with pathspec.
1111

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

0 commit comments

Comments
 (0)