~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to t/t4015-diff-whitespace.sh

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20070422133105-tkmhz328g2p0epz1
Tags: 1:1.5.1.2-1
* new upstream point release.
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
EOF
44
44
 
45
45
git-diff > out
46
 
test_expect_success "Ray's example without options" 'diff -u expect out'
 
46
test_expect_success "Ray's example without options" 'git diff expect out'
47
47
 
48
48
git-diff -w > out
49
 
test_expect_success "Ray's example with -w" 'diff -u expect out'
 
49
test_expect_success "Ray's example with -w" 'git diff expect out'
50
50
 
51
51
git-diff -b > out
52
 
test_expect_success "Ray's example with -b" 'diff -u expect out'
 
52
test_expect_success "Ray's example with -b" 'git diff expect out'
53
53
 
54
54
tr 'Q' '\015' << EOF > x
55
55
whitespace at beginning
90
90
+CR at end
91
91
EOF
92
92
git-diff > out
93
 
test_expect_success 'another test, without options' 'diff -u expect out'
 
93
test_expect_success 'another test, without options' 'git diff expect out'
94
94
 
95
95
cat << EOF > expect
96
96
diff --git a/x b/x
97
97
index d99af23..8b32fb5 100644
98
98
EOF
99
99
git-diff -w > out
100
 
test_expect_success 'another test, with -w' 'diff -u expect out'
 
100
test_expect_success 'another test, with -w' 'git diff expect out'
101
101
 
102
102
tr 'Q' '\015' << EOF > expect
103
103
diff --git a/x b/x
109
109
+       whitespace at beginning
110
110
 whitespace change
111
111
-whitespace in the middle
112
 
-whitespace at end
113
112
+white space in the middle
114
 
+whitespace at end  
 
113
 whitespace at end
115
114
 unchanged line
116
 
-CR at endQ
117
 
+CR at end
 
115
 CR at endQ
118
116
EOF
119
117
git-diff -b > out
120
 
test_expect_success 'another test, with -b' 'diff -u expect out'
 
118
test_expect_success 'another test, with -b' 'git diff expect out'
121
119
 
122
120
test_done