File: 16-changes-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 (23 lines) | stat: -rwxr-xr-x 563 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
#!/bin/sh
#
# Graph test: changes

. libtest.sh

test_graph <<EOF
commit 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000
    Staged changes
commit 0000000000000000000000000000000000000000 007ae1f1c611254aaf67b71d42d2326be7ab4047
    Unstaged changes
commit 007ae1f1c611254aaf67b71d42d2326be7ab4047 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    First commit
commit XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Last commit
EOF

assert_equals stdout <<EOF
∙ Staged changes
∙ Unstaged changes
∙ First commit
◎ Last commit
EOF