git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] rebase -r: always reword merge -c

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 30, 2019, 22:51 UTC
Message-ID
<nycvar.QRO.7.76.6.1904301850310.45@tvgsbejvaqbjf.bet>
In-Reply-To
<a226ffff-212b-d81c-11fd-bb496b84a78d@gmail.com>
Hi Phillip,
On Tue, 30 Apr 2019, Phillip Wood wrote:
Show 28 quoted lines
> On 29/04/2019 17:14, Johannes Schindelin wrote:
> > Hi Phillip,
> >
> > On Fri, 26 Apr 2019, Phillip Wood wrote:
> >
> > >     ret = !!run_git_commit(r, git_path_merge_msg(r), opts,
> > >              run_commit_flags);
> > >
> > > diff --git a/t/t3430-rebase-merges.sh b/t/t3430-rebase-merges.sh
> > > index 4c69255ee6..3d484a3c72 100755
> > > --- a/t/t3430-rebase-merges.sh
> > > +++ b/t/t3430-rebase-merges.sh
> > > @@ -164,6 +164,16 @@ test_expect_success 'failed `merge <branch>` does not
> > > crash' '
> > >   	grep "^Merge branch ${SQ}G${SQ}$" .git/rebase-merge/message
> > >   '
> > >
> > > +test_expect_success 'fast-forward merge -c still rewords' '
> > > +	git checkout -b fast-forward-merge-c H &&
> > > +	set_fake_editor &&
> >
> > set_fake_editor affects global state AFAIR (setting and exporting
> > `EDITOR`), therefore this would need to be run in a subshell, i.e.
> > enclosed in parentheses.
>
> The other test files are not very consistent about that. I'll re-roll. Note
> that I do not export any FAKE_* variables, so later tests should not be
> affected even if the fake editor runs.

AFAIR I tried my best to avoid `set_fake_editor` altogether and instead preferred `write_script`/`test_config core.editor` combos in t3430.

Ciao, Dscho

Previous: Phillip WoodNext: Phillip Wood
Message 4 of 8 in “rebase -r: always reword merge -c”
  1. rebase -r: always reword merge -cPhillip Wood, Apr 26, 2019
  2. Johannes SchindelinApr 29, 2019
  3. Phillip WoodApr 30, 2019
  4. Johannes SchindelinApr 30, 2019
  5. rebase -r: always reword merge -cPhillip Wood, May 2, 2019
  6. Johannes SchindelinMay 3, 2019
  7. Johannes SchindelinMay 17, 2019
  8. Junio C HamanoMay 19, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.