summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d3f2475)
raw | patch | inline | side by side (parent: d3f2475)
author | Rodrigo Silva (MestreLion) <linux@rodrigosilva.com> | |
Fri, 23 Mar 2012 12:38:42 +0000 (12:38 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 Mar 2012 17:46:07 +0000 (10:46 -0700) |
Previously GIT_EDITOR was not listed in git(1) "Environment Variables" section,
which could be very confusing to users. Include it in "other" subsection along
with a link to git-var(1), since that is the page that fully describes all
places where editor can be set and also their preference order.
Also, git-var(1) did not say that hardcoded fallback 'vi' may have been changed
at build time. A user could be puzzled if 'nano' pops up even when none of the
mentioned environment vars or config.editor are set. Clarify this.
Ideally, the build system should be changed to reflect the chosen fallback
editor when creating the man pages. Not sure if that is even possible though.
Signed-off-by: Rodrigo Silva (MestreLion) <linux@rodrigosilva.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
which could be very confusing to users. Include it in "other" subsection along
with a link to git-var(1), since that is the page that fully describes all
places where editor can be set and also their preference order.
Also, git-var(1) did not say that hardcoded fallback 'vi' may have been changed
at build time. A user could be puzzled if 'nano' pops up even when none of the
mentioned environment vars or config.editor are set. Clarify this.
Ideally, the build system should be changed to reflect the chosen fallback
editor when creating the man pages. Not sure if that is even possible though.
Signed-off-by: Rodrigo Silva (MestreLion) <linux@rodrigosilva.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt | patch | blob | history |
diff --git a/Documentation/git.txt b/Documentation/git.txt
index d5b7667c15ef45e371b3fd3c4ecdf513f8f7cc02..458cc076fcb80e4f89771bdcc3b200a1117ea158 100644 (file)
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
a pager. See also the `core.pager` option in
linkgit:git-config[1].
+'GIT_EDITOR'::
+ This environment variable overrides `$EDITOR` and `$VISUAL`.
+ It is used by several git comands when, on interactive mode,
+ an editor is to be launched. See also linkgit:git-var[1]
+ and the `core.editor` option in linkgit:git-config[1].
+
'GIT_SSH'::
If this environment variable is set then 'git fetch'
and 'git push' will use this command instead