File: 02-duplicate-parent-test

package info (click to toggle)
tig 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,388 kB
  • sloc: ansic: 32,985; sh: 10,118; makefile: 389
file content (38 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# Graph test: duplicate parent

. libtest.sh

test_graph <<EOF
commit A B C
    Commit A - Merge C into B
commit B C E
    Commit B - Merge E into C
commit C D
    Commit C after D
commit E D
    Commit E after D
commit D F
    Commit D after F
commit F G H
    Commit F - Merge H into G
commit G H I
    Commit G - Merge I into H
commit I H
    Commit I after H
commit H
    Commit H
EOF

assert_equals stdout <<EOF
●─╮ Commit A - Merge C into B
●─│─╮ Commit B - Merge E into C
∙─╯ │ Commit C after D
│ ∙─╯ Commit E after D
∙─╯ Commit D after F
●─╮ Commit F - Merge H into G
●─│─╮ Commit G - Merge I into H
│ │ ∙ Commit I after H
◎─┴─╯ Commit H
EOF