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

Re: [PATCH] rebase -x: do not die without -i

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 17, 2016, 13:11 UTC
Message-ID
<alpine.DEB.2.20.1603171406080.4690@virtualbox>
In-Reply-To
<xmqq4mc535n2.fsf@gitster.mtv.corp.google.com>
Hi Junio,
On Thu, 17 Mar 2016, Junio C Hamano wrote:
> I guess that may "work" but it sounds like quite a roundabout
> way to "test all commits".  "rebase" is about replaying history to
> end up with a set of newly minted commits, and being able to poke at
> the state each commit records in the working tree is a side effect.

I think there is a misunderstanding here. Stefan does not only want to test all of the commits in the patch series. Stefan wants to make sure that all patches in the series result in revisions that pass the test suite.

In other words, it is not only about testing, it is also about fixing when things break.

And that is very, very much the purpose of the interactive rebase.
>     $ git for-each-rev -x "$command" old..new
> 
> where you can write "sh -c 'git checkout $1 && make test' -" as
> your $command.
You meant
	git rev-list old...new |
	while read rev
	do
		$command || break
	done
?

Again, this might *test* the revisions. But it does nothing to help fixing any patch in the series.

Ciao, Dscho

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “rebase -x: do not die without -i”
  1. rebase -x: do not die without -iStefan Beller, Mar 17, 2016
  2. Johannes SixtMar 17, 2016
  3. Johannes SchindelinMar 17, 2016
  4. Junio C HamanoMar 17, 2016
  5. Johannes SchindelinMar 17, 2016
  6. Junio C HamanoMar 17, 2016

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.