Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH RFC3 08/13] send-email: Remove superfluous `my $editor = ...'

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:36

Björn Steinbrink [off-list ref] writes:
On 2009.04.13 16:39:52 -0700, Stephen Boyd wrote:
quoted
Michael Witten wrote:
quoted
-	my $editor = $ENV{GIT_EDITOR} || Git::config(@repo, "core.editor") || $ENV{VISUAL} || $ENV{EDITOR} || "vi";
I don't want to start an editor war, but why is 'vi' here? It seems
that one of the previous four should be set at all times, correct?
Probably because that's how the rest of git works, too. See core.editor
in git-config(1) or launch_editor() in editor.c if you don't trust the
docs.

Oh, and I seem to rely on that behaviour :-)
The git specific parts are obviously our invention, but $VISUAL then
$EDITOR and finally as the last resort falling back on vi has been a
longstanding UNIXy tradition that is shared by many tools.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help