Skip to content

Commit 7b1d626

Browse files
allancaffeegitster
authored andcommitted
t4202-log: extend test coverage of graphing
Extend this test to cover the rendering of graphs with octopus merges and pre_commit lines. Signed-off-by: Allan Caffee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8fbf879 commit 7b1d626

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

t/t4202-log.sh

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,36 @@ test_expect_success 'set up more tangled history' '
284284
git merge master~3 &&
285285
git merge side~1 &&
286286
git checkout master &&
287-
git merge tangle
287+
git merge tangle &&
288+
git checkout -b reach &&
289+
test_commit reach &&
290+
git checkout master &&
291+
git checkout -b octopus-a &&
292+
test_commit octopus-a &&
293+
git checkout master &&
294+
git checkout -b octopus-b &&
295+
test_commit octopus-b &&
296+
git checkout master &&
297+
test_commit seventh &&
298+
git merge octopus-a octopus-b
299+
git merge reach
288300
'
289301

290302
cat > expect <<\EOF
303+
* Merge branch 'reach'
304+
|\
305+
| \
306+
| \
307+
*-. \ Merge branches 'octopus-a' and 'octopus-b'
308+
|\ \ \
309+
* | | | seventh
310+
| | * | octopus-b
311+
| |/ /
312+
|/| |
313+
| * | octopus-a
314+
|/ /
315+
| * reach
316+
|/
291317
* Merge branch 'tangle'
292318
|\
293319
| * Merge branch 'side' (early part) into tangle
@@ -316,7 +342,7 @@ cat > expect <<\EOF
316342
* initial
317343
EOF
318344

319-
test_expect_success 'log --graph with merge' '
345+
test_expect_failure 'log --graph with merge' '
320346
git log --graph --date-order --pretty=tformat:%s |
321347
sed "s/ *$//" >actual &&
322348
test_cmp expect actual

0 commit comments

Comments
 (0)