blob: 988a3234f435ccd55d20f9d0e48c146b55691167 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-var(1)
2==========
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-var - Show a git logical variable
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamano4aa0bcc2010-03-03 05:13:1212'git var' ( -l | <variable> )
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
16Prints a git logical variable.
17
18OPTIONS
19-------
20-l::
Junio C Hamano07824ce2006-04-25 07:36:5421Cause the logical variables to be listed. In addition, all the
22variables of the git configuration file .git/config are listed
Junio C Hamano6de0ecd2006-04-27 20:10:4323as well. (However, the configuration variables listing functionality
Junio C Hamano1aa40d22010-01-21 17:46:4324is deprecated in favor of `git config -l`.)
Junio C Hamano1a4e8412005-12-27 08:17:2325
26EXAMPLE
27--------
Junio C Hamanofce7c7e2008-07-02 03:06:3828$ git var GIT_AUTHOR_IDENT
Junio C Hamano1a4e8412005-12-27 08:17:2329Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
30
31
32VARIABLES
33----------
34GIT_AUTHOR_IDENT::
35 The author of a piece of code.
36
37GIT_COMMITTER_IDENT::
38 The person who put a piece of code into git.
39
Junio C Hamano3b70d3c2009-11-21 17:37:3740GIT_EDITOR::
41 Text editor for use by git commands. The value is meant to be
42 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
Junio C Hamano4eda1362012-04-23 20:55:4946 `$VISUAL`, then `$EDITOR`, and then the default chosen at compile
47 time, which is usually 'vi'.
48ifdef::git-default-editor[]
49 The build you are using chose '{git-default-editor}' as the default.
50endif::git-default-editor[]
Junio C Hamano3b70d3c2009-11-21 17:37:3751
52GIT_PAGER::
53 Text viewer for use by git commands (e.g., 'less'). The value
54 is meant to be interpreted by the shell. The order of preference
55 is the `$GIT_PAGER` environment variable, then `core.pager`
Junio C Hamano4eda1362012-04-23 20:55:4956 configuration, then `$PAGER`, and then the default chosen at
57 compile time (usually 'less').
58ifdef::git-default-pager[]
59 The build you are using chose '{git-default-pager}' as the default.
60endif::git-default-pager[]
Junio C Hamano3b70d3c2009-11-21 17:37:3761
Junio C Hamano1a4e8412005-12-27 08:17:2362Diagnostics
63-----------
64You don't exist. Go away!::
65 The passwd(5) gecos field couldn't be read
66Your parents must have hated you!::
Junio C Hamano37276192008-09-04 00:24:0767 The passwd(5) gecos field is longer than a giant static buffer.
Junio C Hamano1a4e8412005-12-27 08:17:2368Your sysadmin must hate you!::
Junio C Hamano37276192008-09-04 00:24:0769 The passwd(5) name field is longer than a giant static buffer.
Junio C Hamano1a4e8412005-12-27 08:17:2370
Junio C Hamano9049d912008-05-29 02:09:5071SEE ALSO
Junio C Hamano1a4e8412005-12-27 08:17:2372--------
Junio C Hamano35738e82008-01-07 07:55:4673linkgit:git-commit-tree[1]
74linkgit:git-tag[1]
75linkgit:git-config[1]
Junio C Hamano1a4e8412005-12-27 08:17:2376
Junio C Hamano1a4e8412005-12-27 08:17:2377GIT
78---
Junio C Hamanof7c042d2008-06-06 22:50:5379Part of the linkgit:git[1] suite