blob: 6498f7cb69be3d3fcece285a714679ac7f4f6454 [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----
Junio C Hamanoc3f0baa2007-01-18 15:53:37 -08006git-var - Show a git logical variable
Eric W. Biedermanaed022a2005-07-14 18:55:09 -06007
8
9SYNOPSIS
10--------
Jonathan Nieder9fabb6d2010-02-14 05:55:53 -060011'git var' ( -l | <variable> )
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060012
13DESCRIPTION
14-----------
15Prints a git logical variable.
16
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020017OPTIONS
18-------
19-l::
Petr Baudis4ee6bc92006-04-25 00:59:28 +020020 Cause the logical variables to be listed. In addition, all the
21 variables of the git configuration file .git/config are listed
Petr Baudise1cbc462006-04-25 00:59:30 +020022 as well. (However, the configuration variables listing functionality
Thomas Rastca768282010-01-07 17:49:12 +010023 is deprecated in favor of `git config -l`.)
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060024
25EXAMPLE
26--------
Jonathan Niederb1889c32008-06-30 01:09:04 -050027 $ git var GIT_AUTHOR_IDENT
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020028 Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060029
30
31VARIABLES
32----------
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020033GIT_AUTHOR_IDENT::
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060034 The author of a piece of code.
35
Jonas Fonsecadf8baa42005-10-03 19:16:30 +020036GIT_COMMITTER_IDENT::
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060037 The person who put a piece of code into git.
38
Jonathan Nieder44fcb492009-11-11 18:01:27 -060039GIT_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
Jonathan Nieder63618242009-10-30 20:41:27 -050047GIT_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
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060053Diagnostics
54-----------
55You don't exist. Go away!::
56 The passwd(5) gecos field couldn't be read
57Your parents must have hated you!::
Jonas Fonseca73bae1d2008-09-03 10:50:43 +020058 The passwd(5) gecos field is longer than a giant static buffer.
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060059Your sysadmin must hate you!::
Jonas Fonseca73bae1d2008-09-03 10:50:43 +020060 The passwd(5) name field is longer than a giant static buffer.
Eric W. Biedermanaed022a2005-07-14 18:55:09 -060061
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