blob: bb981822a470b2df6c79156db8aa94569869e43e [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 Hamanofce7c7e2008-07-02 03:06:3811'git var' [ -l | <variable> ]
Junio C Hamano1a4e8412005-12-27 08:17:2312
13DESCRIPTION
14-----------
15Prints a git logical variable.
16
17OPTIONS
18-------
19-l::
Junio C Hamano07824ce2006-04-25 07:36:5420Cause the logical variables to be listed. In addition, all the
21variables of the git configuration file .git/config are listed
Junio C Hamano6de0ecd2006-04-27 20:10:4322as well. (However, the configuration variables listing functionality
Junio C Hamano1aa40d22010-01-21 17:46:4323is deprecated in favor of `git config -l`.)
Junio C Hamano1a4e8412005-12-27 08:17:2324
25EXAMPLE
26--------
Junio C Hamanofce7c7e2008-07-02 03:06:3827$ git var GIT_AUTHOR_IDENT
Junio C Hamano1a4e8412005-12-27 08:17:2328Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
29
30
31VARIABLES
32----------
33GIT_AUTHOR_IDENT::
34 The author of a piece of code.
35
36GIT_COMMITTER_IDENT::
37 The person who put a piece of code into git.
38
Junio C Hamano3b70d3c2009-11-21 17:37:3739GIT_EDITOR::
40 Text editor for use by git commands. The value is meant to be
41 interpreted by the shell when it is used. Examples: `~/bin/vi`,
42 `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe"
43 --nofork`. The order of preference is the `$GIT_EDITOR`
44 environment variable, then `core.editor` configuration, then
45 `$VISUAL`, then `$EDITOR`, and then finally 'vi'.
46
47GIT_PAGER::
48 Text viewer for use by git commands (e.g., 'less'). The value
49 is meant to be interpreted by the shell. The order of preference
50 is the `$GIT_PAGER` environment variable, then `core.pager`
51 configuration, then `$PAGER`, and then finally 'less'.
52
Junio C Hamano1a4e8412005-12-27 08:17:2353Diagnostics
54-----------
55You don't exist. Go away!::
56 The passwd(5) gecos field couldn't be read
57Your parents must have hated you!::
Junio C Hamano37276192008-09-04 00:24:0758 The passwd(5) gecos field is longer than a giant static buffer.
Junio C Hamano1a4e8412005-12-27 08:17:2359Your sysadmin must hate you!::
Junio C Hamano37276192008-09-04 00:24:0760 The passwd(5) name field is longer than a giant static buffer.
Junio C Hamano1a4e8412005-12-27 08:17:2361
Junio C Hamano9049d912008-05-29 02:09:5062SEE ALSO
Junio C Hamano1a4e8412005-12-27 08:17:2363--------
Junio C Hamano35738e82008-01-07 07:55:4664linkgit:git-commit-tree[1]
65linkgit:git-tag[1]
66linkgit:git-config[1]
Junio C Hamano1a4e8412005-12-27 08:17:2367
68Author
69------
70Written by Eric Biederman <ebiederm@xmission.com>
71
72Documentation
73--------------
74Documentation by Eric Biederman and the git-list <git@vger.kernel.org>.
75
76GIT
77---
Junio C Hamanof7c042d2008-06-06 22:50:5378Part of the linkgit:git[1] suite