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

Re: [BUG] fatal error during merge

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 10, 2009, 23:10 UTC
Message-ID
<alpine.DEB.1.00.0905110106370.27348@pacific.mpi-cbg.de>
In-Reply-To
<20090510163336.GA27241@blimp.localdomain>
Hi,
On Sun, 10 May 2009, Alex Riesen wrote:
Show 20 quoted lines
> diff --git a/merge-recursive.c b/merge-recursive.c
> index a3721ef..d5c43d1 100644
> --- a/merge-recursive.c
> +++ b/merge-recursive.c
> @@ -980,14 +980,15 @@ static int process_renames(struct merge_options *o,
>  
>  				if (mfi.clean &&
>  				    sha_eq(mfi.sha, ren1->pair->two->sha1) &&
> -				    mfi.mode == ren1->pair->two->mode)
> +				    mfi.mode == ren1->pair->two->mode) {
>  					/*
>  					 * This messaged is part of
>  					 * t6022 test. If you change
>  					 * it update the test too.
>  					 */
>  					output(o, 3, "Skipped %s (merged same as existing)", ren1_dst);
> -				else {
> +					add_cacheinfo(mfi.mode, mfi.sha, ren1_dst, 0, 0, ADD_CACHE_OK_TO_ADD);
> +				} else {
>  					if (mfi.merge || !mfi.clean)

If I read the message right, the file revision is supposed not to be changed from HEAD. Is unpack_trees() invalidating the "cleanness" of that file? (I would really love to have a better idea what's going on than what I get from both the commit message and the patch before giving my ACK.)

Ciao, Dscho

Previous: Alex RiesenNext: Alex Riesen
Message 2 of 5 in “Re: [BUG] fatal error during merge”
  1. Alex RiesenMay 10, 2009
  2. Johannes SchindelinMay 10, 2009
  3. Alex RiesenMay 11, 2009
  4. Anders MelchiorsenMay 11, 2009
  5. Johannes SchindelinMay 11, 2009

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.