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

Re: [PATCH] merge-recursive: tweak magic band-aid

From
Elijah Newren <newren@gmail.com>
Date
Mar 21, 2011, 18:24 UTC
Message-ID
<AANLkTik8qaiu0NeM4oyuOvWXtw5QzamQxoyENAUsQxj3@mail.gmail.com>
In-Reply-To
<7v1v250xnr.fsf_-_@alter.siamese.dyndns.org>
Hi,
On Fri, Mar 18, 2011 at 12:07 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Running checks against working tree (e.g. lstat()) and causing
> changes to working tree (e.g. unlink()) while building a virtual
> ancestor merge does not make any sense. Avoid doing so.
>
> This is not a real fix; it is another magic band-aid on top of
> another band-aid we placed earlier.
>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sorry for not responding sooner; thanks for fixing this up, though. Also, I have to apologize for having left a bunch of changes on my harddrive for several months; one of those changes includes the first half of your patch (which I should have remembered and not made the problem worse with my more recent patch submission.) I just never got around to cleaning up those changes and getting them submitted. Maybe I should just send what I do have for now, and then send the cleaned up version when I get a good chunk of time in another month or two.

>   merge-recursive is riddled with places that touch/inspect working tree
>   when it shouldn't, and it is beyond salvage without a major refactoring
>   in its current shape, so this magic band-aid should do for now.

Yeah, I agree this needs to be fixed up. If no one else takes a look, I'll try to when I get back to my other changes.

Previous: Junio C HamanoNext: Jay Soffian
Message 4 of 9 in “[BUG] merge-recursive triggered "BUG"”
  1. Junio C HamanoMar 17, 2011
  2. Junio C HamanoMar 17, 2011
  3. merge-recursive: tweak magic band-aidJunio C Hamano, Mar 18, 2011
  4. Elijah NewrenMar 21, 2011
  5. Jay SoffianMay 20, 2011
  6. Jay SoffianMay 20, 2011
  7. Junio C HamanoMay 20, 2011
  8. Jay SoffianMay 20, 2011
  9. Jay SoffianMay 20, 2011

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.