File: 07-multi-collapse-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 (35 lines) | stat: -rwxr-xr-x 731 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
#!/bin/sh
#
# Graph test: multi collapse

. libtest.sh

test_graph <<EOF
commit A B C D E F
    Commit A - merge B, C, D, E, and F
commit C B
    Commit C - after B
commit B H
    Commit B - after H
commit F G
    Commit F - after G
commit H D
    Commit H - after D
commit D E
    Commit D - after E
commit E G
    Commit E - after G
commit G
    Commit G
EOF

assert_equals stdout <<EOF
●─┬─┬─┬─╮ Commit A - merge B, C, D, E, and F
│ ∙ │ │ │ Commit C - after B
∙─╯ │ │ │ Commit B - after H
│ ╭─╯ │ ∙ Commit F - after G
∙ │ ╭─╯ │ Commit H - after D
∙─╯ │ ╭─╯ Commit D - after E
∙───╯ │ Commit E - after G
◎─────╯ Commit G
EOF