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

Re: [PATCH] git-merge: do up-to-date check also for strategies ours, subtree.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 10, 2007, 08:51 UTC
Message-ID
<7vabszu5zp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vejibu69w.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Right now I do not have time to dig mailing list archive around
>> mid March 2006, and I do not recall the requestor's original
>> rationale, but I have a vague recollection that we added this
>> "no fast-forward check" specifically in response to a user
>> request.
>
> I do not think of a valid reason not to apply your patch.  We
> wanted to avoid the trivial-merge codepath, but that is not a
> valid reason to record a fast forward situation as a merge of
> any kind.

Gaah. I take it back. At least, subtree _MUST_ not honor fast-forward blindly. git-gui.git project is merged into git.git with that strategy, but if I pull from Shawn once, and then he has more updates while I do not have anything on my tree, it will be a fast-forward. I should not be setting the git.git tree to that of git-gui.git in such a case.

Previous: Junio C HamanoNext: Gerrit Pape
Message 5 of 7 in “git-merge: do up-to-date check also for strategies ours, subtree.”
  1. git-merge: do up-to-date check also for strategies ours, subtree.Gerrit Pape, Aug 9, 2007
  2. Junio C HamanoAug 9, 2007
  3. Jeff KingAug 10, 2007
  4. Junio C HamanoAug 10, 2007
  5. Junio C HamanoAug 10, 2007
  6. Gerrit PapeAug 10, 2007
  7. git-merge: do up-to-date check also for all strategiesJunio C Hamano, Aug 16, 2007

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.