Re: [PATCH] launch_editor(): allow spaces in the filename
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 10, 2008, 21:48 UTC
- Message-ID
- <7vabl6i72j.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <7vejaii7c5.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > ... >> This fixes >> >> git config core.editor "c:/Program Files/What/Ever.exe" >> > > Having sent a few messages about shell quoting, it makes me wonder if this > was done very deliberately in the first place, so that you can do things > like: > > git config core.editor "emacs -nw" > > Blame followed by list archive hunting around that timeperiod would tell.
I'll let others look for the bug report and user request from the list archive, but the pertinent commit is 5e2de4f9 (Fix $EDITOR regression introduced by rewrite in C.):
When git-tag and git-commit launches the editor, they used to
honor EDITOR="editor -options args..." but recent rewrite in C
insisted on $EDITOR to be the path to the editor executable.
This restores the older behaviour.
In other words, your example is a user error and your patch is a
regression.I guess the right way to do that would be:
git config core.editor '"c:/Program Files/What/Ever.exe"'
but I do not do windows, so this is obviously untested.