Merge with master
[tig] / tig.1
CommitLineData
2b9c2ad0
JF
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "TIG" 1 "" "" ""
21.SH NAME
22tig \- text-mode interface for git
23.SH "SYNOPSIS"
24
25.nf
26tig [options]
27tig [options] [\-\-] [git log options]
28tig [options] log [git log options]
29tig [options] diff [git diff options]
30tig [options] show [git show options]
31tig [options] < [git command output]
32.fi
33
34.SH "DESCRIPTION"
35
36
37Browse changes in a git repository\&. Additionally, tig(1) can also act as a pager for output of various git commands\&.
38
39
40When browsing repositories, tig(1) uses the underlying git commands to present the user with various views, such as summarized commit log and showing the commit with the log message, diffstat, and the diff\&.
41
42
43Using tig(1) as a pager, it will display input from stdin and try to colorize it\&.
44
45.SH "OPTIONS"
46
47.TP
48\-l
49Start up in log view using the internal log command\&.
50
51.TP
52\-d
53Start up in diff view using the internal diff command\&.
54
55.TP
56\-n[INTERVAL], \-\-line\-number[=INTERVAL]
57Prefix line numbers in log and diff view\&. Optionally, with interval different than each line\&.
58
59.TP
3ad8214b 60\-b[NSPACES], \-\-tab\-size[=NSPACES]
2b9c2ad0
JF
61Set the number of spaces tabs should be expanded to\&.
62
63.TP
64\-v, \-\-version
65Show version and exit\&.
66
67.TP
ffe3a8da
JF
68\-h, \-\-help
69Show help message and exit\&.
70
71.TP
2b9c2ad0
JF
72\-\-
73End of tig(1) options\&. Useful when specifying command options for the main view\&. Example:
74
75.nf
76$ tig \-\- \-\-since=1\&.month
77.fi
78
79.TP
80log [git log options]
81Open log view using the given git log options\&.
82
83.TP
84diff [git diff options]
85Open diff view using the given git diff options\&.
86
87.TP
88show [git show options]
89Open diff view using the given git show options\&.
90
91.TP
92[git log options]
93tig(1) will stop the option parsing when the first command line parameter not starting with "\-" is encountered\&. All options including this one will be passed to git log when loading the main view\&. This makes it possible to say:
94
95.nf
96$ tig tag\-1\&.0\&.\&.HEAD
97.fi
98
2b9c2ad0
JF
99.SH "ENVIRONMENT VARIABLES"
100
2b9c2ad0
JF
101.TP
102TIG_LS_REMOTE
103Set command for retrieving all repository references\&. The command should output data in the same format as git\-ls\-remote(1)\&.
104
2b9c2ad0
JF
105.TP
106TIG_DIFF_CMD
107The command used for the diff view\&. By default, git show is used as a backend\&.
108
109.TP
110TIG_LOG_CMD
111The command used for the log view\&. If you prefer to have both author and committer shown in the log view be sure to pass \-\-pretty=fuller to git log\&.
112
113.TP
114TIG_MAIN_CMD
115The command used for the main view\&. Note, you must always specify the option: \-\-pretty=raw since the main view parser expects to read that format\&.
116
3ad8214b 117.SH "FILES"
2b9c2ad0
JF
118
119.TP
3ad8214b 120\fI~/\&.tigrc\fR
b484cbc8 121User configuration file\&. See \fBtigrc\fR(5) for examples\&.
2b9c2ad0
JF
122
123.TP
3ad8214b
JF
124\fI\&.git/config\fR
125Repository config file\&. Read on startup with the help of git\-repo\-config(1)\&.
2b9c2ad0 126
3ad8214b 127.SH "BUGS"
2b9c2ad0 128
2b9c2ad0 129
3ad8214b 130Known bugs and problems:
2b9c2ad0 131
3ad8214b
JF
132.TP 3
133\(bu
134In it's current state tig is pretty much UTF\-8 only\&.
2b9c2ad0 135.TP
3ad8214b
JF
136\(bu
137If the screen width is very small the main view can draw outside the current view causing bad wrapping\&. Same goes for title and status windows\&.
2b9c2ad0 138.TP
3ad8214b
JF
139\(bu
140The cursor can wrap\-around on the last line and cause the window to scroll\&.
3ad8214b 141.LP
2b9c2ad0 142
3ad8214b 143.SH "COPYRIGHT"
2b9c2ad0 144
2b9c2ad0 145
3ad8214b 146Copyright (c) 2006 Jonas Fonseca <fonseca@diku\&.dk>
2b9c2ad0 147
2b9c2ad0 148
3ad8214b 149This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\&.
2b9c2ad0 150
3ad8214b 151.SH "SEE ALSO"
2b9c2ad0 152
3ad8214b
JF
153.TP 3
154\(bu
b484cbc8
JF
155 \fBtigrc\fR(5)
156.TP
157\(bu
158 The tig manual: \fIhttp://jonas.nitro.dk/tig/manual.html\fR,
159.TP
160\(bu
3ad8214b 161 git(7): \fIhttp://www.kernel.org/pub/software/scm/git/docs/\fR,
2b9c2ad0 162.TP
3ad8214b
JF
163\(bu
164 cogito(7): \fIhttp://www.kernel.org/pub/software/scm/cogito/docs/\fR
165.LP
2b9c2ad0
JF
166
167
3ad8214b 168Other git repository browsers:
2b9c2ad0
JF
169
170.TP 3
171\(bu
3ad8214b 172gitk(1)
ffe3a8da
JF
173.TP
174\(bu
3ad8214b
JF
175qgit(1)
176.TP
177\(bu
178gitview(1)
2b9c2ad0
JF
179.LP
180
2b9c2ad0 181
3ad8214b 182Sites:
2b9c2ad0
JF
183
184.TP 3
185\(bu
3ad8214b
JF
186Homepage: http://jonas\&.nitro\&.dk/tig: \fIhttp://jonas.nitro.dk/tig\fR
187.TP
188\(bu
189Releases: http://jonas\&.nitro\&.dk/tig/releases: \fIhttp://jonas.nitro.dk/tig/releases\fR
2b9c2ad0
JF
190.TP
191\(bu
3ad8214b
JF
192Git URL: http://jonas\&.nitro\&.dk/tig/tig\&.git: \fIhttp://jonas.nitro.dk/tig/tig.git\fR
193.TP
194\(bu
195Gitweb: http://pasky\&.or\&.cz/gitweb\&.cgi?p=tig\&.git;a=summary: \fIhttp://pasky.or.cz/gitweb.cgi?p=tig.git;a=summary\fR
2b9c2ad0
JF
196.LP
197