git-var.1   [plain text]


'\" t
.\"     Title: git-var
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\"      Date: 06/01/2011
.\"    Manual: Git Manual
.\"    Source: Git 1.7.5.4
.\"  Language: English
.\"
.TH "GIT\-VAR" "1" "06/01/2011" "Git 1\&.7\&.5\&.4" "Git Manual"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-var \- Show a git logical variable
.SH "SYNOPSIS"
.sp
\fIgit var\fR ( \-l | <variable> )
.SH "DESCRIPTION"
.sp
Prints a git logical variable\&.
.SH "OPTIONS"
.PP
\-l
.RS 4
Cause the logical variables to be listed\&. 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
git config \-l\&.)
.RE
.SH "EXAMPLE"
.sp
.if n \{\
.RS 4
.\}
.nf
$ git var GIT_AUTHOR_IDENT
Eric W\&. Biederman <ebiederm@lnxi\&.com> 1121223278 \-0600
.fi
.if n \{\
.RE
.\}
.SH "VARIABLES"
.PP
GIT_AUTHOR_IDENT
.RS 4
The author of a piece of code\&.
.RE
.PP
GIT_COMMITTER_IDENT
.RS 4
The person who put a piece of code into git\&.
.RE
.PP
GIT_EDITOR
.RS 4
Text editor for use by git commands\&. The value is meant to be interpreted by the shell when it is used\&. Examples:
~/bin/vi,
$SOME_ENVIRONMENT_VARIABLE,
"C:\eProgram Files\eVim\egvim\&.exe" \-\-nofork\&. The order of preference is the
$GIT_EDITOR
environment variable, then
core\&.editor
configuration, then
$VISUAL, then
$EDITOR, and then finally
\fIvi\fR\&.
.RE
.PP
GIT_PAGER
.RS 4
Text viewer for use by git commands (e\&.g\&.,
\fIless\fR)\&. The value is meant to be interpreted by the shell\&. The order of preference is the
$GIT_PAGER
environment variable, then
core\&.pager
configuration, then
$PAGER, and then finally
\fIless\fR\&.
.RE
.SH "DIAGNOSTICS"
.PP
You don\(cqt exist\&. Go away!
.RS 4
The passwd(5) gecos field couldn\(cqt be read
.RE
.PP
Your parents must have hated you!
.RS 4
The passwd(5) gecos field is longer than a giant static buffer\&.
.RE
.PP
Your sysadmin must hate you!
.RS 4
The passwd(5) name field is longer than a giant static buffer\&.
.RE
.SH "SEE ALSO"
.sp
\fBgit-commit-tree\fR(1) \fBgit-tag\fR(1) \fBgit-config\fR(1)
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite