From: Junio C Hamano Date: Thu, 29 Oct 2009 20:40:54 GMT Subject: Re: [PATCH/RFC 2/2] Provide a build time default-editor setting Message-ID: <7viqdy6ii1.fsf@alter.siamese.dyndns.org> In-Reply-To: <4AE98175.504@viscovery.net> Johannes Sixt writes: > 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?