From: Junio C Hamano Date: Mon, 11 May 2020 14:31:08 GMT Subject: Re: [PATCH] contrib/git-jump: cat output when not a terminal Message-ID: In-Reply-To: George Brown <321.george@gmail.com> writes: > Yes. Another version that someone else implemented used similar method > by unsetting "$GIT_EDITOR" when invoked from Vim and modified "git jump" > to use cat when "$GIT_EDITOR" was empty. That's curious, because with the same approach, that someone else could have gone one step further to set GIT_EDITOR to 'cat' when vim invokes via a macro and then there is no need to modify git-jump at all. "Curious" because I would intuitively think that unsetting GIT_EDITOR and setting it to a specific value, 'cat', would require about the same amount of effort.