1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
\r
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
\r
6 <meta name="generator" content="AsciiDoc 7.0.2" />
\r
7 <style type="text/css">
\r
9 p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
\r
11 border: 1px solid red;
\r
16 margin: 1em 5% 1em 5%;
\r
20 a:visited { color: fuchsia; }
\r
34 h1, h2, h3, h4, h5, h6 {
\r
36 font-family: sans-serif;
\r
38 margin-bottom: 0.5em;
\r
43 border-bottom: 2px solid silver;
\r
46 border-bottom: 2px solid silver;
\r
56 border: 1px solid silver;
\r
61 margin-bottom: 0.5em;
\r
71 font-family: sans-serif;
\r
78 font-family: sans-serif;
\r
82 font-family: sans-serif;
\r
84 border-top: 2px solid silver;
\r
90 padding-bottom: 0.5em;
\r
94 padding-bottom: 0.5em;
\r
98 div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
\r
99 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
\r
100 div.admonitionblock {
\r
103 margin-bottom: 1.5em;
\r
105 div.admonitionblock {
\r
107 margin-bottom: 2.5em;
\r
110 div.content { /* Block element content. */
\r
114 /* Block element titles. */
\r
115 div.title, caption.title {
\r
116 font-family: sans-serif;
\r
120 margin-bottom: 0.5em;
\r
126 td div.title:first-child {
\r
129 div.content div.title:first-child {
\r
132 div.content + div.title {
\r
136 div.sidebarblock > div.content {
\r
137 background: #ffffee;
\r
138 border: 1px solid silver;
\r
142 div.listingblock > div.content {
\r
143 border: 1px solid silver;
\r
144 background: #f4f4f4;
\r
148 div.quoteblock > div.content {
\r
149 padding-left: 2.0em;
\r
151 div.quoteblock .attribution {
\r
155 div.admonitionblock .icon {
\r
156 vertical-align: top;
\r
159 text-decoration: underline;
\r
161 padding-right: 0.5em;
\r
163 div.admonitionblock td.content {
\r
164 padding-left: 0.5em;
\r
165 border-left: 2px solid silver;
\r
168 div.exampleblock > div.content {
\r
169 border-left: 2px solid silver;
\r
173 div.verseblock div.content {
\r
177 div.imageblock div.content { padding-left: 0; }
\r
178 div.imageblock img { border: 1px solid silver; }
\r
179 span.image img { border-style: none; }
\r
183 margin-bottom: 0.8em;
\r
188 font-style: italic;
\r
190 dd > *:first-child {
\r
195 list-style-position: outside;
\r
198 list-style-type: lower-alpha;
\r
201 div.tableblock > table {
\r
202 border-color: #527bbd;
\r
206 font-family: sans-serif;
\r
215 margin-bottom: 0.8em;
\r
218 vertical-align: top;
\r
219 font-style: italic;
\r
220 padding-right: 0.8em;
\r
223 vertical-align: top;
\r
227 div#footer-badges { display: none; }
\r
229 include::./stylesheets/xhtml11-manpage.css[]
\r
230 /* Workarounds for IE6's broken and incomplete CSS2. */
\r
232 div.sidebar-content {
\r
233 background: #ffffee;
\r
234 border: 1px solid silver;
\r
237 div.sidebar-title, div.image-title {
\r
238 font-family: sans-serif;
\r
241 margin-bottom: 0.5em;
\r
244 div.listingblock div.content {
\r
245 border: 1px solid silver;
\r
246 background: #f4f4f4;
\r
250 div.quoteblock-content {
\r
251 padding-left: 2.0em;
\r
254 div.exampleblock-content {
\r
255 border-left: 2px solid silver;
\r
256 padding-left: 0.5em;
\r
259 <title>tigrc(5)</title>
\r
264 tigrc(5) Manual Page
\r
267 <div class="sectionbody">
\r
269 tig user configuration file
\r
274 <div class="sectionbody">
\r
275 <div class="verseblock">
\r
276 <div class="content"><strong>set</strong> variable <strong>=</strong> value
\r
277 <strong>bind</strong> keymap key action
\r
278 <strong>color</strong> area fgcolor bgcolor [attributes]</div></div>
\r
280 <h2>DESCRIPTION</h2>
\r
281 <div class="sectionbody">
\r
282 <p>You can permanently set an option by putting it in the <tt>~/.tigrc</tt> file. The
\r
283 file consists of a series of <em>commands</em>. Each line of the file may contain
\r
284 only one command.</p>
\r
285 <p>The hash mark (<em>#</em>) is used as a <em>comment</em> character. All text after the
\r
286 comment character to the end of the line is ignored. You can use comments to
\r
287 annotate your initialization file.</p>
\r
289 <h2>Set command</h2>
\r
290 <div class="sectionbody">
\r
291 <p>A few selective variables can be configured via the set command. The syntax
\r
293 <div class="verseblock">
\r
294 <div class="content"> <strong>set</strong> variables <strong>=</strong> value</div></div>
\r
296 <div class="listingblock">
\r
297 <div class="content">
\r
298 <pre><tt> set show-rev-graph = yes # Show revision graph?
\r
299 set line-number-interval = 5 # Interval between line numbers
\r
300 set tab-size = 8 # Number of spaces pr tab
\r
301 set encoding = "UTF-8" # Commit encoding</tt></pre>
\r
303 <p>The type of variables are either bool, int, and string.</p>
\r
310 To set a bool variable to true use either "1", "true", or "yes".
\r
311 Any other value will set the variable to false.
\r
319 A non-negative integer.
\r
323 Valid string values
\r
327 A string of characters. Optionally, use either ' or " as delimiters.
\r
332 <p>The following variables can be set:</p>
\r
335 <em>show-rev-graph</em> (bool)
\r
339 Show revision graph in the main view on start-up. Can be toggled with
\r
344 <em>line-number-interval</em> (int)
\r
348 Interval between line numbers. Note, you have to toggle on line
\r
349 numbering with <em>n</em> or the <tt>-n</tt> command line option. The default is to
\r
354 <em>tab-size</em> (int)
\r
358 Number of spaces per tab. The default is 8 spaces.
\r
362 <em>commit-encoding</em> (string)
\r
366 The encoding used for commits. The default is UTF-8. Not this option
\r
367 is shadowed by the "i18n.commitencoding" option in <tt>.git/config</tt>.
\r
372 <h2>Bind command</h2>
\r
373 <div class="sectionbody">
\r
374 <p>Using bind commands keys can be mapped to an action when pressed in a given
\r
375 key map. The syntax is:</p>
\r
376 <div class="verseblock">
\r
377 <div class="content"> <strong>bind</strong> <em>keymap</em> <em>key</em> <em>action</em></div></div>
\r
379 <div class="listingblock">
\r
380 <div class="content">
\r
381 <pre><tt> # A few keybindings
\r
382 bind main w scroll-line-up
\r
383 bind main s scroll-line-down
\r
384 bind main space enter
\r
385 bind diff a previous
\r
387 bind diff b move-first-line
\r
388 # 'unbind' the default quit key binding
\r
389 bind main Q none</tt></pre>
\r
391 <p>Keys are mapped by first searching the keybindings for the current view, then
\r
392 the keybindings for the <strong>generic</strong> keymap, and last the default keybindings.
\r
393 Thus, the view keybindings shadow the generic keybindings which Shadow the
\r
394 built-in keybindings.</p>
\r
401 Valid keymaps are: <strong>main</strong>, <strong>diff</strong>, <strong>log</strong>, <strong>help</strong>, <strong>pager</strong>, and <strong>generic</strong>. Use
\r
402 <strong>generic</strong> to set key mapping in all keymaps.
\r
410 Key values should never be quoted. Use either the ASCII value or one of the
\r
411 following symbolic key names. Symbolic key names are case insensitive, Use
\r
412 <strong>Hash</strong> to bind to the <tt>#</tt> key, since the hash mark is used as a comment
\r
415 <p><strong>Enter</strong>, <strong>Space</strong>, <strong>Backspace</strong>, <strong>Tab</strong>, <strong>Escape</strong>, <strong>Left</strong>, <strong>Right</strong>, <strong>Up</strong>, <strong>Down</strong>,
\r
416 <strong>Insert</strong>, <strong>Delete</strong>, <strong>Hash</strong>, <strong>Home</strong>, <strong>End</strong>, <strong>PageUp</strong>, <strong>PageDown</strong>, <strong>F1</strong>, <strong>F2</strong>, <strong>F3</strong>,
\r
417 <strong>F4</strong>, <strong>F5</strong>, <strong>F6</strong>, <strong>F7</strong>, <strong>F8</strong>, <strong>F9</strong>, <strong>F10</strong>, <strong>F11</strong>, <strong>F12</strong>.</p>
\r
424 Valid action names are described below. Note, all names are
\r
425 case-insensitive, and you may use <em>-</em>, <em>_</em>, and <em>.</em> interchangeably,
\r
426 e.g. "view-main", "View.Main", and "VIEW_MAIN" are the same.
\r
431 <div class="tableblock">
\r
432 <table rules="none"
\r
434 cellspacing="0" cellpadding="4">
\r
435 <col width="274" />
\r
436 <col width="617" />
\r
447 <tbody valign="top">
\r
507 <div class="tableblock">
\r
508 <table rules="none"
\r
510 cellspacing="0" cellpadding="4">
\r
511 <col width="274" />
\r
512 <col width="617" />
\r
523 <tbody valign="top">
\r
529 Enter current line and scroll
\r
553 Move focus to next view
\r
561 Close the current view
\r
569 Close all views and quit
\r
575 <div class="tableblock">
\r
576 <table rules="none"
\r
578 cellspacing="0" cellpadding="4">
\r
579 <col width="274" />
\r
580 <col width="617" />
\r
591 <tbody valign="top">
\r
597 Move cursor one line up
\r
605 Move cursor one line down
\r
613 Move cursor one page down
\r
621 Move cursor one page up
\r
629 Move cursor to first line
\r
637 Move cursor to last line
\r
643 <div class="tableblock">
\r
644 <table rules="none"
\r
646 cellspacing="0" cellpadding="4">
\r
647 <col width="274" />
\r
648 <col width="617" />
\r
659 <tbody valign="top">
\r
673 Scroll one line down
\r
689 Scroll one page down
\r
695 <div class="tableblock">
\r
696 <table rules="none"
\r
698 cellspacing="0" cellpadding="4">
\r
699 <col width="274" />
\r
700 <col width="617" />
\r
711 <tbody valign="top">
\r
725 Bring up the prompt
\r
749 Show version information
\r
757 Stop all loading views
\r
765 Toggle line numbers
\r
773 Toggle revision graph visualization
\r
780 <h2>Color command</h2>
\r
781 <div class="sectionbody">
\r
782 <p>Color commands control highlighting and the user interface styles. If your
\r
783 terminal supports color, these commands can be used to assign foreground and
\r
784 background combinations to certain areas. Optionally, an attribute can be given
\r
785 as the last parameter. The syntax is:</p>
\r
786 <div class="verseblock">
\r
787 <div class="content"> <strong>color</strong> <em>area</em> <em>fgcolor</em> <em>bgcolor</em> <em>[attributes]</em></div></div>
\r
789 <div class="listingblock">
\r
790 <div class="content">
\r
791 <pre><tt> # Diff colors
\r
792 color diff-header yellow default
\r
793 color diff-index blue default
\r
794 color diff-chunk magenta default
\r
795 # A strange looking cursor line
\r
796 color cursor red default underline
\r
798 color title-blur white blue
\r
799 color title-focus white blue bold</tt></pre>
\r
807 Valid area names are described below. Note, all names are
\r
808 case-insensitive, and you may use <em>-</em>, <em>_</em>, and <em>.</em> interchangeably,
\r
809 e.g. "Diff-Header", "DIFF_HEADER", and "diff.header" are the same.
\r
817 Valid colors include: <strong>white</strong>, <strong>black</strong>, <strong>green</strong>, <strong>magenta</strong>, <strong>blue</strong>,
\r
818 <strong>cyan</strong>, <strong>yellow</strong>, <strong>red</strong>, <strong>default</strong>. Use <strong>default</strong> to refer to the
\r
819 default terminal colors.
\r
827 Valid attributes include: <strong>normal</strong>, <strong>blink</strong>, <strong>bold</strong>, <strong>dim</strong>, <strong>reverse</strong>,
\r
828 <strong>standout</strong>, and <strong>underline</strong>. Note, not all attributes may be supported
\r
836 Status window colors
\r
840 Appearance of the bottom window showing info messages.
\r
842 <p><strong>status</strong></p>
\r
845 Title window colors
\r
849 Appearance of the title windows when they are attached
\r
850 to any backgrounded windows and the current window.
\r
852 <p><strong>title-blur</strong>, <strong>title-focus</strong></p>
\r
859 <strong>cursor</strong>
\r
867 Appearance of the various columns in the main view, including the <em>~</em> used for
\r
868 delimiting long author names and labels for tag and branch references.
\r
870 <p><strong>main-date</strong>, <strong>main-author</strong>, <strong>main-commit</strong>, <strong>main-delim</strong>, <strong>main-tag</strong>,
\r
871 <strong>main-ref</strong></p>
\r
874 <h3>Highlighting</h3>
\r
875 <p>The colors and attributes for text that is not highlighted can be controlled
\r
876 by changing the <strong>default</strong> color option.</p>
\r
883 Options concerning diff start, chunks and lines added and deleted.
\r
885 <p><strong>diff-header</strong>, <strong>diff-chunk</strong>, <strong>diff-add</strong>, <strong>diff-del</strong></p>
\r
888 Enhanced git diff markup
\r
892 Extra diff information emitted by the git diff machinery, such as mode
\r
893 changes, rename detection, and similarity.
\r
895 <p><strong>diff-oldmode</strong>, <strong>diff-newmode</strong>, <strong>diff-copy-from</strong>, <strong>diff-copy-to</strong>,
\r
896 <strong>diff-rename-from</strong>, <strong>diff-rename-to</strong>, <strong>diff-similarity</strong> <strong>diff-dissimilarity</strong>
\r
897 <strong>diff-tree</strong>, <strong>diff-index</strong></p>
\r
900 Pretty print commit headers
\r
904 Commit diffs and the revision logs are usually formatted using pretty printed
\r
905 headers , unless <tt>--pretty=raw</tt> was given. This includes lines, such as merge
\r
906 info, commit ID, and author and committer date.
\r
908 <p><strong>pp-author</strong>, <strong>pp-commit</strong>, <strong>pp-merge</strong>, <strong>pp-date</strong>, <strong>pp-adate</strong>, <strong>pp-cdate</strong></p>
\r
915 Usually shown when <tt>--pretty=raw</tt> is given, however <em>commit</em> is pretty much
\r
918 <p><strong>commit</strong>, <strong>parent</strong>, <strong>tree</strong>, <strong>author</strong>, <strong>committer</strong></p>
\r
925 For now only <tt>Signed-off-by</tt> and <tt>Acked-by</tt> lines are colorized.
\r
927 <p><strong>signoff</strong>, <strong>acked</strong></p>
\r
932 <div class="sectionbody">
\r
933 <p>Copyright (c) 2006 Jonas Fonseca <fonseca@diku.dk></p>
\r
934 <p>Licensed under the terms of the GNU General Public License.</p>
\r
937 <div class="sectionbody">
\r
938 <p><a href="tig.1.html">tig(1)</a> and the <a href="http://jonas.nitro.dk/tig/manual.html">tig manual</a>.</p>
\r
941 <div id="footer-text">
\r
942 Last updated 18-Sep-2006 18:23:53 CEST
\r