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

Re: Last mile for 1.0

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 6, 2005, 14:37 UTC
Message-ID
<Pine.LNX.4.58.0506060730510.1876@ppc970.osdl.org>
In-Reply-To
<7vekbgufra.fsf@assigned-by-dhcp.cox.net>
On Mon, 6 Jun 2005, Junio C Hamano wrote:
> 
> Yes, this was done from your explicit request not to touch the
> working directory while it works AFAICR.  At least back then,
> not touching the working tree was the _requirement_.

Yes. Now that read-tree verifies that the working directory is clean (at least for any non-identity files), it's a non-issue.

> So is "the new merge world order" you mentioned in the log
> message now require (and assume) the work tree more-or-less
> matches the first head being merged?

Well, without "-u" you should see the old "order doesn't matter" case, but yes, the theory is that the three trees are <base> <current> <merge> for the three-way case, and <current> <new> for the two-way one.

You can get the old behaviour by using
	git-read-tree -m <cur>
	git-read-tree -m <base> <cur> <merge>

where the first read-tree ends up just makign sure that the index file matches the current head (use "-u" or not as you like).

(Side note: the actual read-tree phase should be totally agnostic about whether the current tree is the first, second or third of the trees, since it will happily say "oh, we saw this exact directory entry in _one_ of the trees, so we know it hasn't gotten lost". So for now, order still is left to the final user, but I don't think you should depend on that).

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 19 of 25 in “Documentation: describe git extended diff headers.”
  1. Documentation: describe git extended diff headers.Junio C Hamano, Jun 5, 2005
  2. Linus TorvaldsJun 5, 2005
  3. Fix diff.c to match rename extended header to the document.Junio C Hamano, Jun 5, 2005
  4. Fix apply.c to match rename extended header to the document.Junio C Hamano, Jun 5, 2005
  5. Linus TorvaldsJun 5, 2005
  6. Last mile for 1.0Junio C Hamano, Jun 5, 2005
  7. Junio C HamanoJun 5, 2005
  8. McMullan, JasonJun 6, 2005
  9. Linus TorvaldsJun 6, 2005
  10. git-whatchanged vs "cvs annotate"Junio C Hamano, Jun 6, 2005
  11. Thomas GlanzmannJun 6, 2005
  12. Linus TorvaldsJun 6, 2005
  13. Junio C HamanoJun 6, 2005
  14. Linus TorvaldsJun 6, 2005
  15. Thomas GlanzmannJun 6, 2005
  16. Linus TorvaldsJun 6, 2005
  17. Thomas GlanzmannJun 6, 2005
  18. Junio C HamanoJun 6, 2005
  19. Linus TorvaldsJun 6, 2005
  20. Junio C HamanoJun 6, 2005
  21. Linus TorvaldsJun 6, 2005
  22. Linus TorvaldsJun 6, 2005
  23. 3-way read-tree case matrix.Junio C Hamano, Jun 8, 2005
  24. Junio C HamanoJun 8, 2005
  25. Tests: read-tree -m test updates.Junio C Hamano, Jun 8, 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.