@matheusbsbs / matheus-bagliano / commits / d91ce887c9
Fork 0

t6120-describe: correct test repo history graph in comment

At the top of 't6120-describe.sh' an ASCII graph illustrates the repository's history used in this test script. This graph is a bit misleading, because it swapped the second merge commit's first and second parents. When describing/naming a commit it does make a difference which parent is the first and which is the second/Nth, so update this graph to accurately represent that second merge. While at it, move this history graph from the 'test_description' variable to a regular comment. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Nov 12, 2019 at 11:38 UTC d91ce887c936affbbf24ab2461d924ad1c6eefc7
1 file changed +10 -9
t/t6120-describe.sh
+10 -9
@@ -1,15 +1,16 @@
1 #!/bin/sh
2
3 -test_description='test describe
3 +test_description='test describe'
4 +
5 +# o---o-----o----o----o-------o----x
6 +# \ D,R e /
7 +# \---o-------------o-'
8 +# \ B /
9 +# `-o----o----o-'
10 +# A c
11 +#
12 +# First parent of a merge commit is on the same line, second parent below.
13
5 - B
6 - .--------------o----o----o----x
7 - / / /
8 - o----o----o----o----o----. /
9 - \ A c /
10 - .------------o---o---o
11 - D,R e
12 -'
14 . ./test-lib.sh
15
16 check_describe () {