summaryrefslogtreecommitdiff
path: root/devdocs/git/git-var.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/git/git-var.html
new repository
Diffstat (limited to 'devdocs/git/git-var.html')
-rw-r--r--devdocs/git/git-var.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/devdocs/git/git-var.html b/devdocs/git/git-var.html
new file mode 100644
index 00000000..9803d965
--- /dev/null
+++ b/devdocs/git/git-var.html
@@ -0,0 +1,10 @@
+<h1>git-var</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-var - Show a Git logical variable</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git var (-l | &lt;variable&gt;)</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>Prints a Git logical variable. Exits with code 1 if the variable has no value.</p> </div> <h2 id="_options">Options</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-var.txt--l"> -l </dt> <dd> <p>Display the logical variables. In addition, all the variables of the Git configuration file .git/config are listed as well. (However, the configuration variables listing functionality is deprecated in favor of <code>git config -l</code>.)</p> </dd> </dl> </div> </div> <h2 id="_examples">Examples</h2> <div class="sectionbody"> <div class="literalblock"> <div class="content"> <pre data-language="shell-session">$ git var GIT_AUTHOR_IDENT
+Eric W. Biederman &lt;ebiederm@lnxi.com&gt; 1121223278 -0600</pre> </div> </div> </div> <h2 id="_variables">Variables</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-var.txt-GITAUTHORIDENT"> GIT_AUTHOR_IDENT </dt> <dd> <p>The author of a piece of code.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITCOMMITTERIDENT"> GIT_COMMITTER_IDENT </dt> <dd> <p>The person who put a piece of code into Git.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITEDITOR"> GIT_EDITOR </dt> <dd> <p>Text editor for use by Git commands. The value is meant to be interpreted by the shell when it is used. Examples: <code>~/bin/vi</code>, <code>$SOME_ENVIRONMENT_VARIABLE</code>, <code>"C:\Program Files\Vim\gvim.exe"
+--nofork</code>. The order of preference is the <code>$GIT_EDITOR</code> environment variable, then <code>core.editor</code> configuration, then <code>$VISUAL</code>, then <code>$EDITOR</code>, and then the default chosen at compile time, which is usually <code>vi</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITSEQUENCEEDITOR"> GIT_SEQUENCE_EDITOR </dt> <dd> <p>Text editor used to edit the <code>todo</code> file while running <code>git rebase
+-i</code>. Like <code>GIT_EDITOR</code>, the value is meant to be interpreted by the shell when it is used. The order of preference is the <code>$GIT_SEQUENCE_EDITOR</code> environment variable, then <code>sequence.editor</code> configuration, and then the value of <code>git var
+GIT_EDITOR</code>.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITPAGER"> GIT_PAGER </dt> <dd> <p>Text viewer for use by Git commands (e.g., <code>less</code>). The value is meant to be interpreted by the shell. The order of preference is the <code>$GIT_PAGER</code> environment variable, then <code>core.pager</code> configuration, then <code>$PAGER</code>, and then the default chosen at compile time (usually <code>less</code>).</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITDEFAULTBRANCH"> GIT_DEFAULT_BRANCH </dt> <dd> <p>The name of the first branch created in newly initialized repositories.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITSHELLPATH"> GIT_SHELL_PATH </dt> <dd> <p>The path of the binary providing the POSIX shell for commands which use the shell.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITATTRSYSTEM"> GIT_ATTR_SYSTEM </dt> <dd> <p>The path to the system <a href="gitattributes">gitattributes[5]</a> file, if one is enabled.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITATTRGLOBAL"> GIT_ATTR_GLOBAL </dt> <dd> <p>The path to the global (per-user) <a href="gitattributes">gitattributes[5]</a> file.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITCONFIGSYSTEM"> GIT_CONFIG_SYSTEM </dt> <dd> <p>The path to the system configuration file, if one is enabled.</p> </dd> <dt class="hdlist1" id="Documentation/git-var.txt-GITCONFIGGLOBAL"> GIT_CONFIG_GLOBAL </dt> <dd> <p>The path to the global (per-user) configuration files, if any.</p> </dd> </dl> </div> <p>Most path values contain only one value. However, some can contain multiple values, which are separated by newlines, and are listed in order from highest to lowest priority. Callers should be prepared for any such path value to contain multiple items.</p> <p>Note that paths are printed even if they do not exist, but not if they are disabled by other environment variables.</p> </div> <h2 id="_see_also">See also</h2> <div class="sectionbody"> <p><a href="git-commit-tree">git-commit-tree[1]</a> <a href="git-tag">git-tag[1]</a> <a href="git-config">git-config[1]</a></p> </div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2012&ndash;2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
+ <a href="https://git-scm.com/docs/git-var" class="_attribution-link">https://git-scm.com/docs/git-var</a>
+ </p>
+</div>