@@ -99,7 +99,7 @@ test_expect_success 'changed commit' '
99
99
1: 4de457d = 1: a4b3333 s/5/A/
100
100
2: fccce22 = 2: f51d370 s/4/A/
101
101
3: 147e64e ! 3: 0559556 s/11/B/
102
- @@
102
+ @@ file: A
103
103
9
104
104
10
105
105
-11
@@ -109,7 +109,7 @@ test_expect_success 'changed commit' '
109
109
13
110
110
14
111
111
4: a63e992 ! 4: d966c5c s/12/B/
112
- @@
112
+ @@ file
113
113
@@ file: A
114
114
9
115
115
10
@@ -158,7 +158,7 @@ test_expect_success 'changed commit with sm config' '
158
158
1: 4de457d = 1: a4b3333 s/5/A/
159
159
2: fccce22 = 2: f51d370 s/4/A/
160
160
3: 147e64e ! 3: 0559556 s/11/B/
161
- @@
161
+ @@ file: A
162
162
9
163
163
10
164
164
-11
@@ -168,7 +168,7 @@ test_expect_success 'changed commit with sm config' '
168
168
13
169
169
14
170
170
4: a63e992 ! 4: d966c5c s/12/B/
171
- @@
171
+ @@ file
172
172
@@ file: A
173
173
9
174
174
10
@@ -186,9 +186,10 @@ test_expect_success 'renamed file' '
186
186
sed s/Z/\ /g >expected <<-EOF &&
187
187
1: 4de457d = 1: f258d75 s/5/A/
188
188
2: fccce22 ! 2: 017b62d s/4/A/
189
- @@
189
+ @@ Metadata
190
190
ZAuthor: Thomas Rast <[email protected] >
191
191
Z
192
+ Z ## Commit message ##
192
193
- s/4/A/
193
194
+ s/4/A/ + rename file
194
195
Z
@@ -198,8 +199,8 @@ test_expect_success 'renamed file' '
198
199
Z 1
199
200
Z 2
200
201
3: 147e64e ! 3: 3ce7af6 s/11/B/
201
- @@
202
- Z
202
+ @@ Metadata
203
+ Z ## Commit message ##
203
204
Z s/11/B/
204
205
Z
205
206
- ## file ##
@@ -210,8 +211,8 @@ test_expect_success 'renamed file' '
210
211
Z 9
211
212
Z 10
212
213
4: a63e992 ! 4: 1e6226b s/12/B/
213
- @@
214
- Z
214
+ @@ Metadata
215
+ Z ## Commit message ##
215
216
Z s/12/B/
216
217
Z
217
218
- ## file ##
@@ -230,30 +231,32 @@ test_expect_success 'file added and later removed' '
230
231
sed s/Z/\ /g >expected <<-EOF &&
231
232
1: 4de457d = 1: 096b1ba s/5/A/
232
233
2: fccce22 ! 2: d92e698 s/4/A/
233
- @@
234
+ @@ Metadata
234
235
ZAuthor: Thomas Rast <[email protected] >
235
236
Z
237
+ Z ## Commit message ##
236
238
- s/4/A/
237
239
+ s/4/A/ + new-file
238
240
Z
239
241
Z ## file ##
240
242
Z@@
241
- @@
243
+ @@ file
242
244
Z A
243
245
Z 6
244
246
Z 7
245
247
+
246
248
+ ## new-file (new) ##
247
249
3: 147e64e ! 3: 9a1db4d s/11/B/
248
- @@
250
+ @@ Metadata
249
251
ZAuthor: Thomas Rast <[email protected] >
250
252
Z
253
+ Z ## Commit message ##
251
254
- s/11/B/
252
255
+ s/11/B/ + remove file
253
256
Z
254
257
Z ## file ##
255
258
Z@@ file: A
256
- @@
259
+ @@ file: A
257
260
Z 12
258
261
Z 13
259
262
Z 14
@@ -274,8 +277,8 @@ test_expect_success 'changed message' '
274
277
sed s/Z/\ /g >expected <<-EOF &&
275
278
1: 4de457d = 1: f686024 s/5/A/
276
279
2: fccce22 ! 2: 4ab067d s/4/A/
277
- @@
278
- Z
280
+ @@ Metadata
281
+ Z ## Commit message ##
279
282
Z s/4/A/
280
283
Z
281
284
+ Also a silly comment here!
@@ -293,8 +296,8 @@ test_expect_success 'dual-coloring' '
293
296
sed -e "s|^:||" >expect <<-\EOF &&
294
297
:<YELLOW>1: a4b3333 = 1: f686024 s/5/A/<RESET>
295
298
:<RED>2: f51d370 <RESET><YELLOW>!<RESET><GREEN> 2: 4ab067d<RESET><YELLOW> s/4/A/<RESET>
296
- : <REVERSE><CYAN>@@<RESET>
297
- : <RESET>
299
+ : <REVERSE><CYAN>@@<RESET> <RESET>Metadata<RESET>
300
+ : ## Commit message ## <RESET>
298
301
: s/4/A/<RESET>
299
302
: <RESET>
300
303
: <REVERSE><GREEN>+<RESET><BOLD> Also a silly comment here!<RESET>
@@ -303,7 +306,7 @@ test_expect_success 'dual-coloring' '
303
306
: <CYAN> @@<RESET>
304
307
: 1<RESET>
305
308
:<RED>3: 0559556 <RESET><YELLOW>!<RESET><GREEN> 3: b9cb956<RESET><YELLOW> s/11/B/<RESET>
306
- : <REVERSE><CYAN>@@<RESET>
309
+ : <REVERSE><CYAN>@@<RESET> <RESET>file: A<RESET>
307
310
: 9<RESET>
308
311
: 10<RESET>
309
312
: <RED> -11<RESET>
@@ -313,7 +316,7 @@ test_expect_success 'dual-coloring' '
313
316
: 13<RESET>
314
317
: 14<RESET>
315
318
:<RED>4: d966c5c <RESET><YELLOW>!<RESET><GREEN> 4: 8add5f1<RESET><YELLOW> s/12/B/<RESET>
316
- : <REVERSE><CYAN>@@<RESET>
319
+ : <REVERSE><CYAN>@@<RESET> <RESET>file<RESET>
317
320
: <CYAN> @@ file: A<RESET>
318
321
: 9<RESET>
319
322
: 10<RESET>
0 commit comments