6 tig - text-mode interface for git
12 tig [options] [--] [git options]
13 tig [options] log [git options]
14 tig [options] diff [git options]
15 tig [options] show [git options]
16 tig [options] < [git command output]
20 Browse changes in a git repository. Additionally, tig(1) can also act
21 as a pager for output of various git commands.
23 When browsing repositories, tig(1) uses the underlying git commands
24 to present the user with various views, such as summarized commit log
25 and showing the commit with the log message, diffstat, and the diff.
27 Using tig(1) as a pager, it will display input from stdin and try
34 Start up in log view using the internal log command.
37 Start up in diff view using the internal diff command.
40 Start up in status view.
42 -n[INTERVAL], --line-number[=INTERVAL]::
43 Prefix line numbers in log and diff view.
44 Optionally, with interval different than each line.
46 -b[NSPACES], --tab-size[=NSPACES]::
47 Set the number of spaces tabs should be expanded to.
50 Show version and exit.
53 Show help message and exit.
56 End of tig(1) options. Useful when specifying command
57 options for the main view. Example:
59 $ tig -- --since=1.month
62 Open log view using the given git log options.
65 Open diff view using the given git diff options.
68 Open diff view using the given git show options.
71 tig(1) will stop the option parsing when the first
72 command line parameter not starting with "-" is
73 encountered. All options including this one will be
74 passed to git log when loading the main view.
75 This makes it possible to say:
82 Display the current branch:
83 -----------------------------------------------------------------------------
85 -----------------------------------------------------------------------------
87 Display one or more specific branches:
88 -----------------------------------------------------------------------------
90 -----------------------------------------------------------------------------
93 -----------------------------------------------------------------------------
95 -----------------------------------------------------------------------------
97 Display differences between two branches:
98 -----------------------------------------------------------------------------
100 -----------------------------------------------------------------------------
102 Display changes for a single file:
103 -----------------------------------------------------------------------------
105 -----------------------------------------------------------------------------
107 Display revisions between two dates for a specific file:
108 -----------------------------------------------------------------------------
109 $ tig -- --after "2004-01-01" --before="2006-05-16" -- README
110 -----------------------------------------------------------------------------
112 ENVIRONMENT VARIABLES
113 ---------------------
115 Set command for retrieving all repository references. The command
116 should output data in the same format as git-ls-remote(1).
119 The command used for the diff view. By default, git show is used
123 The command used for the log view. If you prefer to have both
124 author and committer shown in the log view be sure to pass
125 `--pretty=fuller` to git log.
128 The command used for the main view. Note, you must always specify
129 the option: `--pretty=raw` since the main view parser expects to
135 The command used for the tree view. By default, git-ls-tree(1) is
136 used. The commands should expect first the commit ID and second
140 The command used for the blob view. By default, git-cat-file(1) is
141 used. The command gets the blob ID.
146 User configuration file. See gitlink:tigrc[5] for examples.
149 Repository config file. Read on start-up with the help of
156 Copyright (c) 2006-2007 Jonas Fonseca <fonseca@diku.dk>
158 This program is free software; you can redistribute it and/or modify
159 it under the terms of the GNU General Public License as published by
160 the Free Software Foundation; either version 2 of the License, or
161 (at your option) any later version.
166 gitlink:tigrc[5], git(7), cogito(7), as well as other git repository browsers:
167 gitk(1), qgit(1), gitview(1).