7 tigrc - Tig configuration file
13 _______________________________________________________________________
14 *set* 'variable' *=* 'value'
15 *bind* 'keymap' 'key' 'action'
16 *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
18 _______________________________________________________________________
24 You can permanently set an option by putting it in the `~/.tigrc` file. The
25 file consists of a series of 'commands'. Each line of the file may contain
26 only one command. Commands can span multiple lines if each line is
27 terminated by a backslash ('\') character.
29 The hash mark ('#') is used as a 'comment' character. All text after the
30 comment character to the end of the line is ignored. You can use comments to
31 annotate your initialization file.
36 Alternatively to using `~/.tigrc`, Tig options can be set by putting them in
37 one of the Git configuration files, which are read by Tig on startup. See
38 'git-config(1)' for which files to use. The following example show the basic
39 syntax to use for settings, bindings and colors.
42 --------------------------------------------------------------------------
43 [tig] show-changes = true
44 [tig "color"] cursor = yellow red bold
45 [tig "bind"] generic = P parent
46 --------------------------------------------------------------------------
48 In addition to tig-specific options, the following Git options are read from
49 the Git configuration:
53 Colors for the various UI types. Can be configured via the 'git-colors'
58 The width of the commit ID. See also 'id-width' option.
62 The editor command. Can be overridden by setting GIT_EDITOR.
66 The path to the root of the working tree.
70 The encoding to use for displaying of file content.
72 'i18n.commitencoding'::
74 The encoding used for commits. The default is UTF-8.
79 A few selective variables can be configured via the set command. The syntax
83 *set* variables *=* value
88 --------------------------------------------------------------------------
89 set commit-order = topo # Order commits topologically
90 set git-colors = no # Do not read Git's color settings.
91 set horizontal-scroll = 33% # Scroll 33% of the view width
92 set blame-options = -C -C -C # Blame lines from other files
94 # Wrap branch names with () and tags with <>
95 set reference-format = (branch) <tag>
97 # Configure blame view columns using command spanning multiple lines.
103 line-number:yes,interval=5 text
104 --------------------------------------------------------------------------
106 Or in the Git configuration files:
109 --------------------------------------------------------------------------
111 line-graphics = no # Disable graphics characters
112 tab-size = 8 # Number of spaces per tab
113 --------------------------------------------------------------------------
115 The type of variables is either bool, int, string, or mixed.
119 To set a bool variable to true use either "1", "true", or "yes".
120 Any other value will set the variable to false.
124 A non-negative integer.
126 Valid string values::
128 A string of characters. Optionally, use either ' or " as delimiters.
132 These values are composites of the above types. The valid values are
133 specified in the description.
138 The following variables can be set:
140 'diff-options' (string)::
142 A space separated string of diff options to use in the diff view.
143 git-show(1) is used for formatting and always passes --patch-with-stat.
144 This option overrides any options specified in the TIG_DIFF_OPTS
145 environment variable (described in manpage:tig[1]), but is itself
146 overridden by diff flags given on the command line invocation.
148 'blame-options' (string)::
150 A space separated string of extra blame options. Can be used for
151 telling git-blame(1) how to detect the origin of lines. The value
152 is ignored when Tig is started in blame mode and given blame options
155 'reference-format' (string)::
157 A space separated string of format strings used for formatting reference
158 names. Wrap the name of the reference type with the characters you would
159 like to use for formatting, e.g. `[tag]` and `<remote>`. If no format is
160 specified for `local-tag`, the format for `tag` is used. Similarly, if no
161 format is specified for `tracked-remote` the `remote` format is used.
162 Prefix with `hide:` to not show that reference type, e.g. `hide:remote`.
163 Supported reference types are:
164 - head : The current HEAD.
165 - tag : A signed tag.
166 - local-tag : An unsigned tag.
168 - tracked-remote : The remote tracked by current HEAD.
169 - replace : A replaced reference.
170 - branch : Any other reference.
172 'line-graphics' (mixed) [ascii|default|utf-8|<bool>]::
174 What type of character graphics for line drawing.
176 'horizontal-scroll' (mixed)::
178 Interval to scroll horizontally in each step. Can be specified either
179 as the number of columns, e.g. '5', or as a percentage of the view
180 width, e.g. '33%', where the maximum is 100%. For percentages it is
181 always ensured that at least one column is scrolled. The default is to
182 scroll '50%' of the view width.
184 'git-colors' (list)::
186 A space separated list of "key=value" pairs where the key is a Git color
187 name and the value is a Tig color name, e.g. "branch.current=main-head"
188 and "grep.filename=grep.file". Set to "no" to disable.
190 'show-notes' (mixed) [<reference>|<bool>]::
192 Whether to show notes for a commit. When set to a note reference the
193 reference is passed to `git show --notes=`. Notes are enabled by
196 'show-changes' (bool)::
198 Whether to show staged and unstaged changes in the main view.
200 'vertical-split' (mixed) [auto|<bool>]::
202 Whether to split the view horizontally or vertically.
203 "auto" (which is the default) means that it will depend on the window
204 dimensions. When true vertical orientation is used, and false sets the
205 orientation to horizontal.
207 'split-view-height' (mixed)::
209 The height of the bottom view in a horizontally split display. Can be
210 specified either as the number of rows, e.g. '5', or as a percentage of
211 the view height, e.g. '80%', where the maximum is 100%. It is always
212 ensured that the smaller of the views is at least four rows high. The
215 'split-view-width' (mixed)::
217 Width of the right-most view in a vertically split display. Can be
218 specified either as the number of column, e.g. '5', or as a percentage
219 of the view width, e.g. '80%', where the maximum is 100%. It is always
220 ensured that the smaller of the views is at least four columns wide. The
223 'status-untracked-dirs' (bool)::
225 Show untracked directories contents in the status view (analog to
226 `git ls-files --directory` option). On by default.
230 Number of spaces per tab. The default is 8 spaces.
232 'diff-context' (int)::
234 Number of context lines to show for diffs.
236 'ignore-space' (mixed) [no|all|some|at-eol|<bool>]::
238 Ignore space changes in diff view. By default no space changes are
239 ignored. Changing this to "all", "some" or "at-eol" is equivalent to
240 passing "--ignore-all-space", "--ignore-space" or
241 "--ignore-space-at-eol" respectively to `git diff` or `git show`.
243 'commit-order' (mixed) [default|topo|date|author-date|reverse|<bool>]::
245 Commit ordering using the default (chronological reverse) order,
246 topological order, date order or reverse order. The default order is
247 used when the option is set to false, and topo order when set to true.
248 Note that topological order is automatically used in the main view when
249 the commit graph is enabled and the commit order is set to the default.
251 'ignore-case' (bool)::
253 Ignore case in searches. By default, the search is case sensitive.
255 'wrap-lines' (bool)::
257 Wrap long lines. By default, lines are not wrapped.
258 Not compatible with line numbers enabled.
260 'focus-child' (bool)::
262 Whether to focus the child view when it is opened. When disabled the
263 focus will remain in the parent view, avoiding reloads of the child
264 view when navigating the parent view. True by default.
266 'editor-line-number' (bool)::
268 Whether to pass the selected line number to the editor command. The
269 line number is passed as `+<line-number>` in front of the file name.
270 Example: `vim +10 tig.c`
274 Whether to enable mouse support. Off by default since it makes selecting
275 text from the terminal less intuitive. When enabled hold down Shift (or
276 Option on Mac) to select text. Mouse support requires that ncurses
277 itself support mouse events.
279 'mouse-scroll' (int)::
281 Interval to scroll up or down using the mouse. The default is 3 lines.
282 Mouse support requires that ncurses itself support mouse events and that
283 you have enabled mouse support in ~/.tigrc with `set mouse = true`.
285 'refresh-mode' (mixed) [manual|auto|after-command|periodic|<bool>]::
287 Configures how views are refreshed based on modifications to watched
288 files in the repository. When set to 'manual', nothing is refreshed
289 automatically. When set to 'auto', views are refreshed when a
290 modification is detected. When set to 'after-command' only refresh after
291 returning from an external command. When set to 'periodic', visible
292 views are refreshed periodically using 'refresh-interval'.
294 'refresh-interval' (int)::
296 Interval in seconds between view refresh update checks when
297 'refresh-mode' is set to 'periodic'.
301 Command line arguments referring to files. These are filtered using
306 Command line arguments referring to revisions. These are filtered using
309 'cmdline-args' (args)::
311 All remaining command line arguments that are not either filtered into
312 'file-args' or 'rev-args'.
317 The view settings define the order and options for the different columns of a
318 view. Each view setting expects a space separated list of column specifications.
319 Column specifications starts with the column type, and can optionally be
320 followed by a colon (`:`) and a list of column options. E.g. the following
321 column specification defines an 'author' column displaying the author email and
322 with a maximum width of 20 characters: `author:email,width=20`.
324 The first option value in a column specification is always the 'display' option.
325 When no 'display' value is given, 'yes' is assumed. For 'display' options
326 expecting an enumerated value this will automatically resolve to the default
327 enum value. For example, `file-name` will automatically have its 'display'
328 setting resolve to 'auto'.
332 --------------------------------------------------------------------------
333 # Enable both ID and line numbers in the blame view
334 set blame-view = date:default author:full file-name:auto id:yes,color \
335 line-number:yes,interval=5 text
337 # Change grep view to be similar to `git grep` format
338 set grep-view = file-name:yes line-number:yes,interval=1 text
340 # Show file sizes as units
341 set tree-view = line-number:no,interval=5 mode author:full \
342 file-size:units date:default id:no file-name
344 # Show line numbers for every 10th line in the pager view
345 set pager-view = line-number:yes,interval=10 text
346 --------------------------------------------------------------------------
348 The following list shows which the available view settings and what column types
351 blob-view, diff-view, log-view, pager-view, stage-view:: line-number, text
352 blame-view:: author, date, file-name, id, line-number, text
353 grep-view:: file-name, line-number, text
354 main-view:: author, date, commit-title, id, line-number
355 refs-view:: author, date, commit-title, id, line-number, ref
356 stash-view:: author, date, commit-title, id, line-number
357 status-view:: file-name, line-number, status
358 tree-view:: author, date, id, file-name, file-size, line-number, mode
360 Supported column types and their respective column options:
364 - 'display' (mixed) [full|abbreviated|email|email-user|<bool>]: How to
365 display author names. If set to "abbreviated" author initials will be
367 - 'width' (int): Width of the column. When set to a value between 1 and
368 10, the author name will be abbreviated to the author's initials.
369 When set to zero, the width is automatically sized to fit the content.
372 - 'graph' (bool): Whether to show revision graph in the main view on
373 start-up. See also the 'line-graphics' options.
374 - 'refs' (bool): Whether to show references (branches, tags, and
375 remotes) in the main view. Can be toggled.
376 - 'overflow' (bool or int): Whether to highlight text in commit titles
377 exceeding a given width. When set to a boolean, it enables or disables
378 the highlighting using the default width of 50 character. When set to
379 an int, the assigned value is used as the maximum character width.
382 - 'display' (mixed) [relative|short|default|local|<bool>]: How to
383 display dates. If set to "relative" a relative date will be used, e.g.
384 "2 minutes ago". If set to "short" no time information is shown. If
385 set to "local", localtime(3) is used.
386 - 'width' (int): Width of the column. When set to zero, the width is
387 automatically sized to fit the content.
390 - 'display' (mixed) [auto|always|<bool>]: When to display file names.
391 If set to "auto" file names are shown only when needed, e.g. when
392 running: tig blame -C <file>.
393 - 'width' (int): Width of the column. When set to zero, the width is
394 automatically sized to fit the content.
397 - 'display' (mixed) [default|units|<bool>]: How to display file sizes.
398 When set to "units", sizes are shown using binary prefixes, e.g. 12524
399 bytes is shown as "12.2K".
400 - 'width' (int): Width of the filename column. When set to zero, the
401 width is automatically sized to fit the content.
404 - 'display' (bool): Whether to show commit IDs in the main view.
405 - 'width' (int) : Width of the commit ID. When unset Tig will use the
406 value of 'core.abbrev' if found. See git-config(1) on how to set
407 'core.abbrev'. When set to zero the width is automatically sized to
408 fit the content of reflog (e.g. `ref/stash@{4}`) IDs and otherwise
412 - 'display' (bool): Whether to show line numbers.
413 - 'interval' (int): Interval between line numbers.
414 - 'width' (int): Width of the column. When set to zero, the width is
415 automatically sized to fit the content.
418 - 'display' (bool): Whether to show file modes.
419 - 'width' (int): Width of the column. When set to zero, the width is
420 automatically sized to fit the content.
423 - 'display' (bool): Whether to show the reference name.
424 - 'width' (int): Width of the column. When set to zero, the width is
425 automatically sized to fit the content.
428 - 'display' (mixed) [no|short|long|<bool>]: How to display the status
430 - 'width' (int): Width of the column. When set to zero, the width is
431 automatically sized to fit the content.
434 - 'commit-title-overflow' (bool or int): Whether to highlight commit
435 titles exceeding a given width in the diff view. When set to a
436 boolean, it enables or disables the highlighting using the default
437 width of 50 character. When set to an int, the assigned value is used
438 as the maximum character width.
440 All column options can be toggled. For 'display' options, use the
441 option name as the prefix followed by a dash and the column name. E.g.
442 `:toggle author-display` will toggle the 'display' option in the 'author'
443 column. For all other options use the column name followed by a dash and
444 then the option name as the suffix. E.g. `:toggle commit-title-graph`
445 will toggle the 'graph' option in the 'commit-title' column.
450 Using bind commands, keys can be mapped to an action when pressed in a given
451 key map. The syntax is:
454 *bind* 'keymap' 'key' 'action'
458 --------------------------------------------------------------------------
459 # Add keybinding to quickly jump to the next diff chunk in the stage view
460 bind stage <Enter> :/^@@
462 # Disable the default mapping for running git-gc
465 # User-defined external command to amend the last commit
466 bind status + !git commit --amend
468 # User-defined internal command that reloads ~/.tigrc
469 bind generic S :source ~/.tigrc
471 # UTF8-encoded characters can be used as key values.
472 bind generic ø @sh -c "printf '%s' %(commit) | pbcopy"
473 --------------------------------------------------------------------------
475 Or in the Git configuration files:
477 --------------------------------------------------------------------------
479 # 'unbind' the default quit key binding
481 # Cherry-pick current commit onto current branch
482 generic = C !git cherry-pick %(commit)
483 --------------------------------------------------------------------------
485 Keys are mapped by first searching the keybindings for the current view, then
486 the keybindings for the *generic* keymap, and last the default keybindings.
487 Thus, the view keybindings override the generic keybindings which override the
488 built-in keybindings.
494 Valid keymaps are: *main*, *diff*, *log*, *help*, *pager*, *status*, *stage*,
495 *tree*, *blob*, *blame*, *refs*, *stash*, *grep* and *generic*. Use *generic*
496 to set key mapping in all keymaps.
500 Key values should never be quoted. Use either an ASCII or UTF8-encoded character
501 or one of the following symbolic key names. Symbolic key names are case
502 insensitive and starts with "<" and ends with ">". Use *<Hash>* to bind to the
503 `#` key, since the hash mark is used as a comment character. Use *<LessThan>* to
506 *<Enter>*, *<Space>*, *<Backspace>*, *<Tab>*, *<Escape>* or *<Esc>*, *<Left>*,
507 *<Right>*, *<Up>*, *<Down>*, *<Insert>* or *<Ins>*, *<Delete>* or *<Del>*,
508 *<Hash>*, *<LessThan>* or *<LT>*, *<Home>*, *<End>*, *<PageUp>* or *<PgUp>*,
509 *<PageDown>* or *<PgDown>*, *<F1>*, *<F2>*, *<F3>*, *<F4>*, *<F5>*, *<F6>*,
510 *<F7>*, *<F8>*, *<F9>*, *<F10>*, *<F11>*, *<F12>*.
512 To define key mappings with the `Ctrl` key, use `<Ctrl-key>`. In addition, key
513 combos consisting of an initial `Escape` key followed by a normal key value can
514 be bound using `<Esc>key`.
518 --------------------------------------------------------------------------
520 bind main <Down> next
521 bind main <Ctrl-f> scroll-page-down
522 bind main <Esc>o options
523 --------------------------------------------------------------------------
525 Note that due to the way ncurses encodes `Ctrl` key mappings, `Ctrl-m` and
526 `Ctrl-i` cannot be bound as they conflict with 'Enter' and 'Tab' respectively.
527 Furthermore, ncurses does not allow to distinguish between `Ctrl-f` and
528 `Ctrl-F`. Finally, `Ctrl-z` is automatically used for process control and will
529 suspend Tig and open a subshell (use `fg` to reenter Tig).
533 Actions are either specified as user-defined commands (external or internal) or
534 using action names as described in the following sections.
538 External user-defined command
539 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
541 These actions start with one or more of the following option flags followed by
542 the command that should be executed.
544 [frame="none",grid="none",cols="25<m,75<"]
545 |=============================================================================
546 |! |Run the command in the foreground with output shown.
547 |@ |Run the command in the background with no output.
548 |? |Prompt the user before executing the command.
549 |< |Exit Tig after executing the command.
550 |=============================================================================
552 Unless otherwise specified, commands are run in the foreground with their
553 console output shown (as if '!' was specified). When multiple command options
554 are specified their behavior are combined, e.g. "?<git commit" will prompt the
555 user whether to execute the command and will exit Tig after completion.
557 Browsing state variables
558 ^^^^^^^^^^^^^^^^^^^^^^^^
560 User-defined commands can optionally refer to Tig's internal state using the
561 following variable names, which are substituted before commands are run:
563 [frame="none",grid="none",cols="25<m,75<"]
564 |=============================================================================
565 |%(head) |The currently viewed 'head' ID. Defaults to HEAD
566 |%(commit) |The currently selected commit ID.
567 |%(blob) |The currently selected blob ID.
568 |%(branch) |The currently selected branch name.
569 |%(remote) |The currently selected remote name. For remote
570 branches %(branch) will contain the branch name.
571 |%(tag) |The currently selected tag name.
572 |%(stash) |The currently selected stash name.
573 |%(directory) |The current directory path in the tree view or
575 |%(file) |The currently selected file.
576 |%(ref) |The reference given to blame or HEAD if undefined.
577 |%(revargs) |The revision arguments passed on the command line.
578 |%(fileargs) |The file arguments passed on the command line.
579 |%(cmdlineargs) |All other options passed on the command line.
580 |%(diffargs) |The diff options from 'diff-options' or 'TIG_DIFF_OPTS'
581 |%(prompt) |Prompt for the argument value. Optionally specify a
582 custom prompt using `"%(prompt Enter branch name: )"`
583 |=============================================================================
587 --------------------------------------------------------------------------
588 # Save save the current commit as a patch file when the user selects a
589 # commit in the main view and presses 'S'.
590 bind main S !git format-patch -1 %(commit)
592 # Create and checkout a new branch; specify custom prompt
593 bind main B ?git checkout -b "%(prompt Enter new branch name: )"
594 --------------------------------------------------------------------------
596 Advanced shell-like commands
597 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
599 If your command requires use of dynamic features, such as subshells,
600 expansion of environment variables and process control, this can be achieved by
601 using a shell command:
603 .Configure a binding to copy the current commit ID to the clipboard.
605 --------------------------------------------------------------------------
606 bind generic I @sh -c "echo -n %(commit) | xclip -selection c"
607 --------------------------------------------------------------------------
609 Or by using a combination of Git aliases and Tig external commands. The
610 following example entries can be put in either the .gitconfig or .git/config
613 .Git configuration which binds Tig keys to Git command aliases.
615 --------------------------------------------------------------------------
617 gitk-bg = !"gitk HEAD --not $(git rev-parse --remotes) &"
618 publish = !"for i in origin public; do git push $i; done"
620 # @-prefix means that the console output will not be shown.
621 generic = V !@git gitk-bg
622 generic = > !git publish
623 --------------------------------------------------------------------------
625 Internal user-defined commands
626 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
628 Actions beginning with a ':' will be run and interpreted as internal commands
629 and act similar to commands run via Tig's prompt. Valid internal commands are
630 configuration file options (as described in this document) and pager view
634 --------------------------------------------------------------------------
635 # Reload ~/.tigrc when 'S' is pressed
636 bind generic S :source .tigrc
638 # Change diff view to show all commit changes regardless of file limitations
639 bind diff F :set diff-options = --full-diff
641 # Show the output of git-reflog(1) in the pager view
642 bind generic W :!git reflog
644 # Search for previous diff (c)hunk and next diff header
646 bind stage D :/^diff --(git|cc)
648 bind main I :toggle id # Show/hide the ID column
649 bind diff D :toggle diff-options --minimal # Use minimal diff algorithm
650 bind diff [ :toggle diff-context -3 # Decrease context (-U arg)
651 bind diff ] :toggle diff-context +3 # Increase context
652 bind generic V :toggle split-view-height -10% # Decrease split height
653 --------------------------------------------------------------------------
655 Similar to external commands, pager view commands can contain variable names
656 that will be substituted before the command is run.
661 Valid action names are described below. Note, all action names are
662 case-insensitive, and you may use '-', '_', and '.' interchangeably, e.g.
663 "view-main", "View.Main", and "VIEW_MAIN" are the same.
665 ifndef::DOC_GEN_ACTIONS[]
669 [frame="none",grid="none",cols="25<m,75<"]
670 |=============================================================================
671 |view-main |Show main view
672 |view-diff |Show diff view
673 |view-log |Show log view
674 |view-tree |Show tree view
675 |view-blob |Show blob view
676 |view-blame |Show blame view
677 |view-refs |Show refs view
678 |view-status |Show status view
679 |view-stage |Show stage view
680 |view-stash |Show stash view
681 |view-grep |Show grep view
682 |view-pager |Show pager view
683 |view-help |Show help view
684 |=============================================================================
689 [frame="none",grid="none",cols="25<m,75<"]
690 |=============================================================================
691 |enter |Enter and open selected line
692 |back |Go back to the previous view state
694 |previous |Move to previous
695 |parent |Move to parent
696 |view-next |Move focus to the next view
697 |refresh |Reload and refresh view
698 |maximize |Maximize the current view
699 |view-close |Close the current view
700 |quit |Close all views and quit
701 |=============================================================================
703 View specific actions
704 ^^^^^^^^^^^^^^^^^^^^^
706 [frame="none",grid="none",cols="25<m,75<"]
707 |=============================================================================
708 |status-update |Stage/unstage chunk or file changes
709 |status-revert |Revert chunk or file changes
710 |status-merge |Merge file using external tool
711 |stage-update-line |Stage/unstage single line
712 |stage-split-chunk |Split current diff chunk
713 |=============================================================================
718 [frame="none",grid="none",cols="25<m,75<"]
719 |=============================================================================
720 |move-up |Move cursor one line up
721 |move-down |Move cursor one line down
722 |move-page-up |Move cursor one page up
723 |move-page-down |Move cursor one page down
724 |move-half-page-up |Move cursor half a page up
725 |move-half-page-down |Move cursor half a page down
726 |move-first-line |Move cursor to first line
727 |move-last-line |Move cursor to last line
728 |=============================================================================
733 [frame="none",grid="none",cols="25<m,75<"]
734 |=============================================================================
735 |scroll-line-up |Scroll one line up
736 |scroll-line-down |Scroll one line down
737 |scroll-page-up |Scroll one page up
738 |scroll-page-down |Scroll one page down
739 |scroll-first-col |Scroll to the first line columns
740 |scroll-left |Scroll two columns left
741 |scroll-right |Scroll two columns right
742 |=============================================================================
747 [frame="none",grid="none",cols="25<m,75<"]
748 |=============================================================================
749 |search |Search the view
750 |search-back |Search backwards in the view
751 |find-next |Find next search match
752 |find-prev |Find previous search match
753 |=============================================================================
758 In addition to the actions below, options can also be toggled with the
759 `:toggle` prompt command.
761 [frame="none",grid="none",cols="25<m,75<"]
762 |=============================================================================
763 |options |Open the options menu
764 |=============================================================================
769 [frame="none",grid="none",cols="25<m,75<"]
770 |=============================================================================
771 |edit |Open in editor
772 |prompt |Open the prompt
773 |screen-redraw |Redraw the screen
774 |stop-loading |Stop all loading views
775 |show-version |Show version information
777 |=============================================================================
778 endif::DOC_GEN_ACTIONS[]
783 Color commands control highlighting and the user interface styles. If your
784 terminal supports color, these commands can be used to assign foreground and
785 background combinations to certain areas. Optionally, an attribute can be
786 given as the last parameter. The syntax is:
789 *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
793 ------------------------------------------------------------------------------
794 # Override the default terminal colors to white on black.
795 color default white black
797 color diff-header yellow default
798 color diff-index blue default
799 color diff-chunk magenta default
800 color "Reported-by:" green default
801 # View specific color
802 color tree.date black cyan bold
803 --------------------------------------------------------------------------
805 Or in the Git configuration files:
807 --------------------------------------------------------------------------
809 # A strange looking cursor line
810 cursor = red default underline
812 title-blur = white blue
813 title-focus = white blue bold
814 # View specific color
816 date = cyan default bold
817 ------------------------------------------------------------------------------
821 Can be either a built-in area name or a custom quoted string. The
822 latter allows custom color rules to be added for lines matching a
824 Valid built-in area names are described below. Note, all names are
825 case-insensitive, and you may use '-', and '_' interchangeably,
826 e.g. "Diff-Header" and "DIFF_HEADER" are the same.
827 View specific colors can be defined by prefixing the view name to
828 the area name, e.g. "stage.diff-chunk" and "diff.diff-chunk".
832 Valid colors include: *white*, *black*, *green*, *magenta*, *blue*,
833 *cyan*, *yellow*, *red*, *default*. Use *default* to refer to the
834 default terminal colors, for example, to keep the background
835 transparent when you are using a terminal with a transparent
838 Colors can also be specified using the keywords *color0*, *color1*, ...,
839 *colorN-1* (where *N* is the number of colors supported by your terminal).
840 This is useful when you remap the colors for your display or want to enable
841 colors supported by 88-color and 256-color terminals. Note that the 'color'
842 prefix is optional. If you prefer, you can specify colors directly by their
843 numbers *0*, *1*, ..., *N-1* instead, just like in the configuration file of
848 Valid attributes include: *normal*, *blink*, *bold*, *dim*, *reverse*,
849 *standout*, and *underline*. Note, not all attributes may be supported
855 The colors and attributes to be used for the text that is not highlighted or
856 that specify the use of the default terminal colors can be controlled by
857 setting the *default* color option.
860 [frame="none",grid="none",cols="25<m,75<"]
861 |=============================================================================
862 |default |Override default terminal colors (see above).
863 |cursor |The cursor line.
864 |status |The status window showing info messages.
865 |title-focus |The title window for the current view.
866 |title-blur |The title window of any backgrounded view.
867 |delimiter |Delimiter shown for truncated lines.
868 |header |The view header lines. Use 'status.header' to color
869 the staged, unstaged, and untracked sections in the
870 status view. Use 'help.header' to color the keymap
871 sections in the help view.
872 |line-number |Line numbers.
874 |date |The author date.
875 |author |The commit author.
876 |mode |The file mode holding the permissions and type.
877 |overflow |Title text overflow.
878 |directory |The directory name.
879 |file |The file name.
880 |file-size |File size.
881 |=============================================================================
884 [frame="none",grid="none",cols="25<m,75<"]
885 |=============================================================================
886 |graph-commit |The commit dot in the revision graph.
887 |palette-[0-13] |14 different colors, used for distinguishing branches
888 or commits. By default, the palette uses the ASCII
889 colors, where the second half of them have the bold
890 attribute enabled to give a brighter color.
891 Example: palette-0 = red
892 |main-commit |The commit comment.
893 |main-head |Label of the current branch.
894 |main-remote |Label of a remote.
895 |main-tracked |Label of the remote tracked by the current branch.
896 |main-tag |Label of a signed tag.
897 |main-local-tag |Label of a local tag.
898 |main-ref |Label of any other reference.
899 |main-replace |Label of replaced reference.
900 |=============================================================================
903 [frame="none",grid="none",cols="25<m,75<"]
904 |=============================================================================
905 |stat-none |Empty status label.
906 |stat-staged |Status flag of staged files.
907 |stat-unstaged |Status flag of unstaged files.
908 |stat-untracked |Status flag of untracked files.
909 |=============================================================================
912 [frame="none",grid="none",cols="25<m,75<"]
913 |=============================================================================
914 |help-group |Help group name.
915 |help-action |Help action name.
916 |=============================================================================
925 Options concerning diff start, chunks and lines added and deleted.
927 *diff-header*, *diff-chunk*, *diff-add*, *diff-add2*, *diff-del*,
930 Enhanced Git diff markup::
932 Extra diff information emitted by the Git diff machinery, such as mode
933 changes, rename detection, and similarity.
935 *diff-oldmode*, *diff-newmode*, *diff-copy-from*, *diff-copy-to*,
936 *diff-similarity*, *diff-index*
938 Pretty print commit headers::
940 Commit diffs and the revision logs are usually formatted using pretty printed
941 headers , unless `--pretty=raw` was given. This includes lines, such as merge
942 info, commit ID, and author and committer date.
944 *pp-refs*, *pp-reflog*, *pp-reflogmsg*, *pp-merge*
948 Usually shown when `--pretty=raw` is given, however 'commit' is pretty much
951 *commit*, *parent*, *tree*, *author*, *committer*
955 `Signed-off-by`, `Acked-by`, `Reviewed-by` and `Tested-by` lines are colorized.
956 Characters in the commit title exceeding a predefined width can be highlighted.
961 Colors for information of the tree view.
963 *tree-dir*, *tree-file*
970 Source commands make it possible to read additional configuration files.
971 Sourced files are included in-place, meaning when a 'source' command is
972 encountered the file will be immediately read. Any commands later in the
973 current configuration file will take precedence. The syntax is:
980 --------------------------------------------------------------------------
981 source ~/.tig/colorscheme.tigrc
982 source ~/.tig/keybindings.tigrc
983 --------------------------------------------------------------------------
987 Copyright (c) 2006-2014 Jonas Fonseca <jonas.fonseca@gmail.com>
989 This program is free software; you can redistribute it and/or modify
990 it under the terms of the GNU General Public License as published by
991 the Free Software Foundation; either version 2 of the License, or
992 (at your option) any later version.
996 ifndef::backend-docbook[]
997 link:tig.1.{docext}[tig(1)],
998 link:manual.{docext}[the Tig manual],
999 endif::backend-docbook[]
1000 ifdef::backend-docbook[]
1002 manpage:tigmanual[7],
1003 endif::backend-docbook[]
1004 git(7), git-config(1)