Documentation / git-var.txton commit Merge branch 'maint' (6f3c0ef)
   1git-var(1)
   2==========
   3
   4NAME
   5----
   6git-var - Show a git logical variable
   7
   8
   9SYNOPSIS
  10--------
  11[verse]
  12'git var' ( -l | <variable> )
  13
  14DESCRIPTION
  15-----------
  16Prints a git logical variable.
  17
  18OPTIONS
  19-------
  20-l::
  21        Cause the logical variables to be listed. In addition, all the
  22        variables of the git configuration file .git/config are listed
  23        as well. (However, the configuration variables listing functionality
  24        is deprecated in favor of `git config -l`.)
  25
  26EXAMPLE
  27--------
  28        $ git var GIT_AUTHOR_IDENT
  29        Eric 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
  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
  46    `$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[]
  51
  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`
  56    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[]
  61
  62Diagnostics
  63-----------
  64You don't exist. Go away!::
  65    The passwd(5) gecos field couldn't be read
  66Your parents must have hated you!::
  67    The passwd(5) gecos field is longer than a giant static buffer.
  68Your sysadmin must hate you!::
  69    The passwd(5) name field is longer than a giant static buffer.
  70
  71SEE ALSO
  72--------
  73linkgit:git-commit-tree[1]
  74linkgit:git-tag[1]
  75linkgit:git-config[1]
  76
  77GIT
  78---
  79Part of the linkgit:git[1] suite