]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-var.txt
var doc: default editor and pager are configurable at build time
[thirdparty/git.git] / Documentation / git-var.txt
CommitLineData
aed022ab 1git-var(1)
71931c19 2==========
aed022ab
EB
3
4NAME
5----
c3f0baac 6git-var - Show a git logical variable
aed022ab
EB
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
9fabb6d7 12'git var' ( -l | <variable> )
aed022ab
EB
13
14DESCRIPTION
15-----------
16Prints a git logical variable.
17
df8baa42
JF
18OPTIONS
19-------
20-l::
4ee6bc99
PB
21 Cause the logical variables to be listed. In addition, all the
22 variables of the git configuration file .git/config are listed
e1cbc46d 23 as well. (However, the configuration variables listing functionality
ca768288 24 is deprecated in favor of `git config -l`.)
aed022ab
EB
25
26EXAMPLE
27--------
b1889c36 28 $ git var GIT_AUTHOR_IDENT
df8baa42 29 Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
aed022ab
EB
30
31
32VARIABLES
33----------
df8baa42 34GIT_AUTHOR_IDENT::
aed022ab
EB
35 The author of a piece of code.
36
df8baa42 37GIT_COMMITTER_IDENT::
aed022ab
EB
38 The person who put a piece of code into git.
39
44fcb497
JN
40GIT_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
4e0ce4df
JN
46 `$VISUAL`, then `$EDITOR`, and then the default chosen at compile
47 time, which is usually 'vi'.
44fcb497 48
63618245
JN
49GIT_PAGER::
50 Text viewer for use by git commands (e.g., 'less'). The value
51 is meant to be interpreted by the shell. The order of preference
52 is the `$GIT_PAGER` environment variable, then `core.pager`
4e0ce4df
JN
53 configuration, then `$PAGER`, and then the default chosen at
54 compile time (usually 'less').
63618245 55
aed022ab
EB
56Diagnostics
57-----------
58You don't exist. Go away!::
59 The passwd(5) gecos field couldn't be read
60Your parents must have hated you!::
73bae1dc 61 The passwd(5) gecos field is longer than a giant static buffer.
aed022ab 62Your sysadmin must hate you!::
73bae1dc 63 The passwd(5) name field is longer than a giant static buffer.
aed022ab 64
56ae8df5 65SEE ALSO
aed022ab 66--------
5162e697
DM
67linkgit:git-commit-tree[1]
68linkgit:git-tag[1]
69linkgit:git-config[1]
aed022ab 70
aed022ab
EB
71GIT
72---
9e1f0a85 73Part of the linkgit:git[1] suite