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

Re: [PATCH] Really fix git-merge-one-file-script this time.

From
Junio C Hamano <junkio@cox.net>
Date
May 1, 2005, 21:18 UTC
Message-ID
<7vsm16sl0q.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0505011312080.2296@ppc970.osdl.org>
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> writes:
>> Linus, have you decided to like or dislike the behaviour of
>> git-merge-one-file-script touching the work tree in some cases
>> but not in other cases?

LT> I don't care about the _successful_ merge, since a successful merge is LT> basically always followed by a "git-checkout-cache -f -a" anyway (and LT> update-cache + remove now-stale files etc).

Let me make sure I understand you correctly before I go further. In the above sentence, do you mean a merge that is _successful_ by merges that:

    (1) "git-remove-tree -m" considers them trivial;
or
    (2) in addition to (1), "git-merge-one-file-script"
        considers them trivial.  That is, only one-side changes
        or removes or adds it, or both sides adds it
        identically, or merge/diff3 merges without conflict.
Which one?
LT> Sounds sane.

LT> On the other hand, I think it would actually be easier to just make your LT> "magic SHA1" be just another "stage".

I am undecided on this one but having worked on the diff side, I think the magic SHA1 of 0{40} would match better with what diff needs to do. It would mean "cache is stale, look in the work tree" to them.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 of 6 in “Really fix git-merge-one-file-script this time.”
  1. Really fix git-merge-one-file-script this time.Junio C Hamano, May 1, 2005
  2. Junio C HamanoMay 1, 2005
  3. Linus TorvaldsMay 1, 2005
  4. Junio C HamanoMay 1, 2005
  5. Linus TorvaldsMay 1, 2005
  6. Junio C HamanoMay 1, 2005

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.