Re: [PATCH/RFC 2/2] Provide a build time default-editor setting
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 29, 2009, 20:40 UTC
- Message-ID
- <7viqdy6ii1.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4AE98175.504@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 10 quoted lines
> David Roundy schrieb: >> Any chance this will be exported as plumbing? I know it's pretty >> high-level, but it'd be handy to have be able to write `git editor >> $FILENAME` and just have it do the right thing. This would also mean >> that the perl scripts below could be simplified. > > Something like below? Possible usage in shell scripts: > > editor=$(git var GIT_EDITOR) > "$editor" "$filename"
I think we support GIT_EDITOR that is command path plus its initial command line arguments, so you do not want dq around $editor, right?