blob: 44ff9541df1f5dd432d37b5828bfb800f66dfae8 [file] [log] [blame]
Eric W. Biedermanaed022a2005-07-14 18:55:09 -06001git-var(1)
Linus Torvalds71931c12005-07-15 14:57:09 -07002==========
Eric W. Biedermanaed022a2005-07-14 18:55:09 -06003
4NAME
5----
Thomas Ackermann2de9b712013-01-21 20:17:53 +01006git-var - Show a Git logical variable
Eric W. Biedermanaed022a2005-07-14 18:55:09 -06007
8
9SYNOPSIS
10--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040011[verse]
Jonathan Nieder9fabb6d2010-02-14 05:55:53 -060012'git var' ( -l | <variable> )
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060013
14DESCRIPTION
15-----------
Thomas Ackermann2de9b712013-01-21 20:17:53 +010016Prints a Git logical variable.
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060017
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020018OPTIONS
19-------
20-l::
Petr Baudis4ee6bc92006-04-25 00:59:28 +020021 Cause the logical variables to be listed. In addition, all the
Thomas Ackermann2de9b712013-01-21 20:17:53 +010022 variables of the Git configuration file .git/config are listed
Petr Baudise1cbc462006-04-25 00:59:30 +020023 as well. (However, the configuration variables listing functionality
Thomas Rastca768282010-01-07 17:49:12 +010024 is deprecated in favor of `git config -l`.)
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060025
26EXAMPLE
27--------
Jonathan Niederb1889c32008-06-30 01:09:04 -050028 $ git var GIT_AUTHOR_IDENT
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020029 Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060030
31
32VARIABLES
33----------
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020034GIT_AUTHOR_IDENT::
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060035 The author of a piece of code.
36
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020037GIT_COMMITTER_IDENT::
Thomas Ackermann2de9b712013-01-21 20:17:53 +010038 The person who put a piece of code into Git.
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060039
Jonathan Nieder44fcb492009-11-11 18:01:27 -060040GIT_EDITOR::
Thomas Ackermann2de9b712013-01-21 20:17:53 +010041 Text editor for use by Git commands. The value is meant to be
Jonathan Nieder44fcb492009-11-11 18:01:27 -060042 interpreted by the shell when it is used. Examples: `~/bin/vi`,
43 `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe"
44 --nofork`. The order of preference is the `$GIT_EDITOR`
45 environment variable, then `core.editor` configuration, then
Jonathan Nieder4e0ce4d2012-03-31 03:42:34 -050046 `$VISUAL`, then `$EDITOR`, and then the default chosen at compile
47 time, which is usually 'vi'.
Jonathan Nieder5b586192012-03-31 03:44:53 -050048ifdef::git-default-editor[]
49 The build you are using chose '{git-default-editor}' as the default.
50endif::git-default-editor[]
Jonathan Nieder44fcb492009-11-11 18:01:27 -060051
Jonathan Nieder63618242009-10-30 20:41:27 -050052GIT_PAGER::
Thomas Ackermann2de9b712013-01-21 20:17:53 +010053 Text viewer for use by Git commands (e.g., 'less'). The value
Jonathan Nieder63618242009-10-30 20:41:27 -050054 is meant to be interpreted by the shell. The order of preference
55 is the `$GIT_PAGER` environment variable, then `core.pager`
Jonathan Nieder4e0ce4d2012-03-31 03:42:34 -050056 configuration, then `$PAGER`, and then the default chosen at
57 compile time (usually 'less').
Jonathan Nieder5b586192012-03-31 03:44:53 -050058ifdef::git-default-pager[]
59 The build you are using chose '{git-default-pager}' as the default.
60endif::git-default-pager[]
Jonathan Nieder63618242009-10-30 20:41:27 -050061
Junio C Hamano56ae8df2008-05-28 16:55:27 -070062SEE ALSO
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060063--------
Dan McGee5162e692007-12-29 00:20:38 -060064linkgit:git-commit-tree[1]
65linkgit:git-tag[1]
66linkgit:git-config[1]
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060067
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060068GIT
69---
Christian Couder9e1f0a82008-06-06 09:07:32 +020070Part of the linkgit:git[1] suite