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

Re: Signal conflict on merging metadata-differing patches

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 19, 2019, 02:04 UTC
Message-ID
<xmqqo8x8zknn.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20191118194804.GA662468@kroah.com>
Greg KH <gregkh@linuxfoundation.org> writes:
Show 8 quoted lines
>> I don't advocate for "git merge" to fail in the above scenarios. No.
>> I just say that Git could likely detect such scenarios and help people
>> like you not pushing v2 and v5 of the same patch into the main tree.
>
> But what should it do in either of those above situations?  Fail the
> merge?  No, that's not ok as those different branches were just fine on
> their own and I will never expect them to be rebased/rewritten just for
> something like this.  That's crazy.
;-)

I agree that the requested "feature" would make no sense for kernel maintainers at various levels, as long as they are dealing with merges among published branches. What's done at the submaintainers' trees are better treated as "already cast in stone".

It may be a useful feature when one maintains a bag of local/private branches that haven't been published, though. I however do not know what its implementation would look like X-<.

Previous: Greg KH
Message 5 of 5 in “Signal conflict on merging metadata-differing patches”
  1. Eugeniu RoscaNov 18, 2019
  2. Greg KHNov 18, 2019
  3. Eugeniu RoscaNov 18, 2019
  4. Greg KHNov 18, 2019
  5. Junio C HamanoNov 19, 2019

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.