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

Re: [PATCH 2/2] Change xdl_merge to generate output even for null merges

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 25, 2009, 07:51 UTC
Message-ID
<alpine.DEB.1.00.0905250948420.26154@pacific.mpi-cbg.de>
In-Reply-To
<1243210874-18451-3-git-send-email-charles@hashpling.org>
Hi,
On Mon, 25 May 2009, Charles Bailey wrote:
Show 10 quoted lines
> xdl_merge used to have a check to ensure that there was at least
> some change in one or other side being merged but this suppressed
> output for the degenerate case when base, local and remote
> contents were all identical.
> 
> Removing this check enables correct output in the degenerate case
> and xdl_free_script handles freeing NULL scripts so there is no
> need to have the check for these calls.
> 
> Signed-off-by: Charles Bailey <charles@hashpling.org>

Maybe mention here that it just so happens that when there were no changes in base->local, it does not matter what changes (_if any_) were made to base->remote, we should output the remote version.

Took me more than 2 seconds to find that out, so let's spare the occasional reader this time (2 seconds is my attention span).

Your fix is correct.

Ciao, Dscho

Previous: Charles BaileyNext: Johannes Schindelin
Message 4 of 5 in “Slightly obscure merge-file inconsistency”
  1. Charles BaileyMay 25, 2009
  2. 1/2 merge-file fails to output anything for a degenerate mergeCharles Bailey, May 25, 2009
  3. 2/2 Change xdl_merge to generate output even for null mergesCharles Bailey, May 25, 2009
  4. Johannes SchindelinMay 25, 2009
  5. Johannes SchindelinMay 25, 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.