Re: [PATCHv3 1/2] rebase: decouple --exec from --interactive
- From
Stefan Beller <sbeller@google.com>
- Date
- Mar 18, 2016, 21:46 UTC
- Message-ID
- <CAGZ79kb7_z4q+Q7TXG12Os5Pn-_5CYHx7ajdv3Ct8iQ59qAE=A@mail.gmail.com>
- In-Reply-To
- <xmqqh9g3pj3e.fsf@gitster.mtv.corp.google.com>
On Fri, Mar 18, 2016 at 2:33 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
>> * Diff to v2 in t3404: >> test_expect_success 'rebase --exec works without -i ' ' >> git reset --hard execute && >> rm -rf exec_output && >> - git rebase --exec "echo a line >>exec_output" HEAD~2 2>actual && >> + EDITOR="echo >invoked_editor" git rebase --exec "echo a line >>exec_output" HEAD~2 2>actual && > > Hmph. If you add "-i" to the command line, do you see the > 'invoked_editor' file created?
just tested that by adding
EDITOR="echo >invoked_editor" git rebase -i ...
test_path_is_file invoked_editorand it works. I have a patch here with s/EDITOR/EDITOR/, which I can send out...... and your follow up email came in, so I stop bothering about this patch until further reviews, ok?