1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
\r
4 <article lang="en" id="git-var(1)">
\r
6 <title>git-var(1)</title>
\r
8 <primary>git-var(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-var - Show a git logical variable</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
18 <literallayout><emphasis>git var</emphasis> ( -l | <variable> )</literallayout>
\r
21 <simplesect id="_description">
\r
22 <title>DESCRIPTION</title>
\r
23 <simpara>Prints a git logical variable.</simpara>
\r
25 <simplesect id="_options">
\r
26 <title>OPTIONS</title>
\r
34 Cause the logical variables to be listed. In addition, all the
\r
35 variables of the git configuration file .git/config are listed
\r
36 as well. (However, the configuration variables listing functionality
\r
37 is deprecated in favor of <emphasis>git config -l</emphasis>.)
\r
43 <simplesect id="_example">
\r
44 <title>EXAMPLE</title>
\r
45 <literallayout class="monospaced">$ git var GIT_AUTHOR_IDENT
\r
46 Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600</literallayout>
\r
48 <simplesect id="_variables">
\r
49 <title>VARIABLES</title>
\r
57 The author of a piece of code.
\r
67 The person who put a piece of code into git.
\r
77 Text editor for use by git commands. The value is meant to be
\r
78 interpreted by the shell when it is used. Examples: <emphasis>~/bin/vi</emphasis>,
\r
79 <emphasis>$SOME_ENVIRONMENT_VARIABLE</emphasis>, <emphasis>"C:\Program Files\Vim\gvim.exe"
\r
80 --nofork</emphasis>. The order of preference is the <emphasis>$GIT_EDITOR</emphasis>
\r
81 environment variable, then <emphasis>core.editor</emphasis> configuration, then
\r
82 <emphasis>$VISUAL</emphasis>, then <emphasis>$EDITOR</emphasis>, and then finally <emphasis>vi</emphasis>.
\r
92 Text viewer for use by git commands (e.g., <emphasis>less</emphasis>). The value
\r
93 is meant to be interpreted by the shell. The order of preference
\r
94 is the <emphasis>$GIT_PAGER</emphasis> environment variable, then <emphasis>core.pager</emphasis>
\r
95 configuration, then <emphasis>$PAGER</emphasis>, and then finally <emphasis>less</emphasis>.
\r
101 <simplesect id="_diagnostics">
\r
102 <title>Diagnostics</title>
\r
106 You don't exist. Go away!
\r
110 The passwd(5) gecos field couldn't be read
\r
116 Your parents must have hated you!
\r
120 The passwd(5) gecos field is longer than a giant static buffer.
\r
126 Your sysadmin must hate you!
\r
130 The passwd(5) name field is longer than a giant static buffer.
\r
136 <simplesect id="_see_also">
\r
137 <title>SEE ALSO</title>
\r
138 <simpara><xref linkend="git-commit-tree(1)" />
\r
139 <xref linkend="git-tag(1)" />
\r
140 <xref linkend="git-config(1)" /></simpara>
\r
142 <simplesect id="_git">
\r
144 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r