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

Re: feature suggestion: improve rerere

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Mar 6, 2013, 13:24 UTC
Message-ID
<51374382.6050101@viscovery.net>
In-Reply-To
<20130306101640.GA15375@pengutronix.de>
Am 3/6/2013 11:16, schrieb Uwe Kleine-König:
Show 32 quoted lines
> 	++<<<<<<< ours
> 	 +ssize_t xread(int fd, void *buf, size_t count)
> 	 +{
> 	 +	ssize_t ret, done = 0;
> 	 +
> 	 +retry:
> 	 +	ret = read(fd, buf + done, count - done);
> 	 +	if (ret < 0)
> 	 +		return ret;
> 	 +
> 	 +	done += ret;
> 	 +
> 	 +	if (ret == 0 /* EOF */ || done == count)
> 	 +		return done;
> 	 +	else
> 	 +		goto retry;
> 	 +}
> 	 +
> 	++||||||| base
> 	++=======
> 	+ #include "common.h"
> 	+ 
> 	++>>>>>>> theirs
> 	  int main(int argc,char *argv[])
> 	  {
> 		int fd, val, ret, size, wrote, len;
> 
> This is the same conflict as the first one, just with ours and theirs
> exchanged. So my suggestion is to make rerere use the resolution
> recorded for the first conflict here.
> 
> Sounds sensible?
Of course, and rerere already does it. But only when you use git's default
conflict markers rather than diff3 style markers that have this extra
||||| line.
-- Hannes
Previous: Uwe Kleine-KönigNext: Uwe Kleine-König
Message 2 of 4 in “feature suggestion: improve rerere”
  1. Uwe Kleine-KönigMar 6, 2013
  2. Johannes SixtMar 6, 2013
  3. Uwe Kleine-KönigMar 6, 2013
  4. Johannes SixtMar 7, 2013

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.