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) | ||
commit | 36384c979da7129393462c2208fd156b1453debd | |
tree | fe085e40956d25ca32ca30cf05cfafe61ba3cb8d | tree | snapshot |
parent | d3f2475c01d9e90dbadacbe2c35854f6d11e6409 | commit | diff |
Documentation: improve description of GIT_EDITOR and preference order
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>
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>
Documentation/git.txt | diff | blob | history |