File: update-unstaged-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 (40 lines) | stat: -rwxr-xr-x 669 bytes parent folder | download | duplicates (3)
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
39
40
#!/bin/sh
#
# GitHub issue #376 regarding a segfault

. libtest.sh
. libgit.sh
. "$source_dir/util.sh"

export LINES=5

steps '
	:save-display start.screen
	d
	@
	j
	u
	:save-display result.screen
'

tigrc <<EOF
set vertical-split = no
EOF

in_work_dir create_dirty_workdir

test_tig

assert_equals 'start.screen' <<EOF
$YYY_MM_DD_HH_MM +0000 Unknown    o Unstaged changes
2009-02-13 23:31 +0000 A. U. Thor I [master] Initial commit

[main] Unstaged changes                                                     100%
EOF

assert_equals 'result.screen' <<EOF
+++ b/.j
@@ -6,6 +6,4 @@
 5
[stage] Unstaged changes to '.j' - line 13 of 101                            12%
EOF