@@ -35,10 +35,10 @@ aeff = aeff * ( aaa )
35
35
EOF
36
36
37
37
cat > expect << \EOF
38
- <WHITE >diff --git a/pre b/post<RESET>
39
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
40
- <WHITE >--- a/pre<RESET>
41
- <WHITE >+++ b/post<RESET>
38
+ <BOLD >diff --git a/pre b/post<RESET>
39
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
40
+ <BOLD >--- a/pre<RESET>
41
+ <BOLD >+++ b/post<RESET>
42
42
<CYAN>@@ -1,3 +1,7 @@<RESET>
43
43
<RED>h(4)<RESET><GREEN>h(4),hh[44]<RESET>
44
44
@@ -122,10 +122,10 @@ test_expect_success '--word-diff=plain --no-color' '
122
122
'
123
123
124
124
cat > expect << EOF
125
- <WHITE >diff --git a/pre b/post<RESET>
126
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
127
- <WHITE >--- a/pre<RESET>
128
- <WHITE >+++ b/post<RESET>
125
+ <BOLD >diff --git a/pre b/post<RESET>
126
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
127
+ <BOLD >--- a/pre<RESET>
128
+ <BOLD >+++ b/post<RESET>
129
129
<CYAN>@@ -1,3 +1,7 @@<RESET>
130
130
<RED>[-h(4)-]<RESET><GREEN>{+h(4),hh[44]+}<RESET>
131
131
@@ -143,10 +143,10 @@ test_expect_success '--word-diff=plain --color' '
143
143
'
144
144
145
145
cat > expect << \EOF
146
- <WHITE >diff --git a/pre b/post<RESET>
147
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
148
- <WHITE >--- a/pre<RESET>
149
- <WHITE >+++ b/post<RESET>
146
+ <BOLD >diff --git a/pre b/post<RESET>
147
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
148
+ <BOLD >--- a/pre<RESET>
149
+ <BOLD >+++ b/post<RESET>
150
150
<CYAN>@@ -1 +1 @@<RESET>
151
151
<RED>h(4)<RESET><GREEN>h(4),hh[44]<RESET>
152
152
<CYAN>@@ -3,0 +4,4 @@<RESET> <RESET><MAGENTA>a = b + c<RESET>
@@ -163,10 +163,10 @@ test_expect_success 'word diff without context' '
163
163
'
164
164
165
165
cat > expect << \EOF
166
- <WHITE >diff --git a/pre b/post<RESET>
167
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
168
- <WHITE >--- a/pre<RESET>
169
- <WHITE >+++ b/post<RESET>
166
+ <BOLD >diff --git a/pre b/post<RESET>
167
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
168
+ <BOLD >--- a/pre<RESET>
169
+ <BOLD >+++ b/post<RESET>
170
170
<CYAN>@@ -1,3 +1,7 @@<RESET>
171
171
h(4),<GREEN>hh<RESET>[44]
172
172
@@ -199,10 +199,10 @@ test_expect_success 'option overrides .gitattributes' '
199
199
'
200
200
201
201
cat > expect << \EOF
202
- <WHITE >diff --git a/pre b/post<RESET>
203
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
204
- <WHITE >--- a/pre<RESET>
205
- <WHITE >+++ b/post<RESET>
202
+ <BOLD >diff --git a/pre b/post<RESET>
203
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
204
+ <BOLD >--- a/pre<RESET>
205
+ <BOLD >+++ b/post<RESET>
206
206
<CYAN>@@ -1,3 +1,7 @@<RESET>
207
207
h(4)<GREEN>,hh[44]<RESET>
208
208
@@ -231,10 +231,10 @@ test_expect_success 'command-line overrides config' '
231
231
'
232
232
233
233
cat > expect << \EOF
234
- <WHITE >diff --git a/pre b/post<RESET>
235
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
236
- <WHITE >--- a/pre<RESET>
237
- <WHITE >+++ b/post<RESET>
234
+ <BOLD >diff --git a/pre b/post<RESET>
235
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
236
+ <BOLD >--- a/pre<RESET>
237
+ <BOLD >+++ b/post<RESET>
238
238
<CYAN>@@ -1,3 +1,7 @@<RESET>
239
239
h(4),<GREEN>{+hh+}<RESET>[44]
240
240
@@ -260,10 +260,10 @@ test_expect_success 'remove diff driver regex' '
260
260
'
261
261
262
262
cat > expect << \EOF
263
- <WHITE >diff --git a/pre b/post<RESET>
264
- <WHITE >index 330b04f..5ed8eff 100644<RESET>
265
- <WHITE >--- a/pre<RESET>
266
- <WHITE >+++ b/post<RESET>
263
+ <BOLD >diff --git a/pre b/post<RESET>
264
+ <BOLD >index 330b04f..5ed8eff 100644<RESET>
265
+ <BOLD >--- a/pre<RESET>
266
+ <BOLD >+++ b/post<RESET>
267
267
<CYAN>@@ -1,3 +1,7 @@<RESET>
268
268
h(4),<GREEN>hh[44<RESET>]
269
269
@@ -282,10 +282,10 @@ echo 'aaa (aaa)' > pre
282
282
echo ' aaa (aaa) aaa' > post
283
283
284
284
cat > expect << \EOF
285
- <WHITE >diff --git a/pre b/post<RESET>
286
- <WHITE >index c29453b..be22f37 100644<RESET>
287
- <WHITE >--- a/pre<RESET>
288
- <WHITE >+++ b/post<RESET>
285
+ <BOLD >diff --git a/pre b/post<RESET>
286
+ <BOLD >index c29453b..be22f37 100644<RESET>
287
+ <BOLD >--- a/pre<RESET>
288
+ <BOLD >+++ b/post<RESET>
289
289
<CYAN>@@ -1 +1 @@<RESET>
290
290
aaa (aaa) <GREEN>aaa<RESET>
291
291
EOF
@@ -301,10 +301,10 @@ echo '(:' > pre
301
301
echo ' (' > post
302
302
303
303
cat > expect << \EOF
304
- <WHITE >diff --git a/pre b/post<RESET>
305
- <WHITE >index 289cb9d..2d06f37 100644<RESET>
306
- <WHITE >--- a/pre<RESET>
307
- <WHITE >+++ b/post<RESET>
304
+ <BOLD >diff --git a/pre b/post<RESET>
305
+ <BOLD >index 289cb9d..2d06f37 100644<RESET>
306
+ <BOLD >--- a/pre<RESET>
307
+ <BOLD >+++ b/post<RESET>
308
308
<CYAN>@@ -1 +1 @@<RESET>
309
309
(<RED>:<RESET>
310
310
EOF
0 commit comments