File: default-test

package info (click to toggle)
tig 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,188 kB
  • sloc: ansic: 36,941; sh: 10,934; makefile: 394
file content (121 lines) | stat: -rwxr-xr-x 5,041 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/sh

. libtest.sh

export COLUMNS=100

steps '
	:view-help
	:save-display help-default.screen

	:/View manipulation
	:save-display help-search.screen

	:4
	:enter
	:5
	:enter
	:save-display help-collapsed.screen
'

stdin <<EOF
test
EOF

test_tig

assert_equals 'help-default.screen' <<EOF
Quick reference for tig keybindings:
[-] Collapse all sections

[-] generic bindings
View switching
                           m view-main           Show main view
                           d view-diff           Show diff view
                           l view-log            Show log view
                           L view-reflog         Show reflog view
                           t view-tree           Show tree view
                           f view-blob           Show blob view
                           b view-blame          Show blame view
                           r view-refs           Show refs view
                        s, S view-status         Show status view
                           c view-stage          Show stage view
                           y view-stash          Show stash view
                           g view-grep           Show grep view
                           p view-pager          Show pager view
                           h view-help           Show help view
View manipulation
                     <Enter> enter               Enter and open selected line
                           < back                Go back to the previous view state
         <Down>, <Ctrl-N>, J next                Move to next
           <Up>, <Ctrl-P>, K previous            Move to previous
                         ',' parent              Move to parent
                       <Tab> view-next           Move focus to the next view
                     R, <F5> refresh             Reload and refresh view
                           O maximize            Maximize the current view
[help] - line 1 of 109                                                                           25%
EOF

assert_equals 'help-search.screen' <<EOF
Quick reference for tig keybindings:
[-] Collapse all sections

[-] generic bindings
View switching
                           m view-main           Show main view
                           d view-diff           Show diff view
                           l view-log            Show log view
                           L view-reflog         Show reflog view
                           t view-tree           Show tree view
                           f view-blob           Show blob view
                           b view-blame          Show blame view
                           r view-refs           Show refs view
                        s, S view-status         Show status view
                           c view-stage          Show stage view
                           y view-stash          Show stash view
                           g view-grep           Show grep view
                           p view-pager          Show pager view
                           h view-help           Show help view
View manipulation
                     <Enter> enter               Enter and open selected line
                           < back                Go back to the previous view state
         <Down>, <Ctrl-N>, J next                Move to next
           <Up>, <Ctrl-P>, K previous            Move to previous
                         ',' parent              Move to parent
                       <Tab> view-next           Move focus to the next view
                     R, <F5> refresh             Reload and refresh view
                           O maximize            Maximize the current view
[help] - line 20 of 109                                                                          25%
EOF

assert_equals 'help-collapsed.screen' <<EOF
Quick reference for tig keybindings:
[-] Collapse all sections

[+] generic bindings
[+] search bindings
[+] main bindings
[+] diff bindings
[+] reflog bindings
[+] refs bindings
[+] status bindings
[+] stage bindings
[+] stash bindings
[-] pager bindings
Internal commands:
  @ :/^@@
[-] toggle bindings
Toggle keys (enter: o <key>):
                          . line-number                Toggle line numbers
                          D date                       Toggle dates
                          A author                     Toggle author
                          T committer                  Toggle committer
                          ~ line-graphics              Toggle graphics
                          g commit-title-graph         Toggle revision graph
                          # file-name                  Toggle file names
                          * file-size                  Toggle file sizes
                          W ignore-space               Toggle space changes
                          l commit-order               Toggle commit order
                          F commit-title-refs          Toggle reference display
[help] - line 5 of 35                                                                            80%
EOF