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

Re: Joining Repositories

From
Junio C Hamano <junkio@cox.net>
Date
Jan 19, 2006, 18:24 UTC
Message-ID
<7vlkxcdqjc.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060118141442.GP28365@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 6 quoted lines
>   oops, it seems this is only in the latest pu branch of git. If you are
> not brave enough for that, you will need to use the prefix facility of
> checkout-index instead, and it'll take much longer:
>...
>   Note that I'm not sure when which feature was introduced. Your best
> bet is to just use the latest stable GIT/Cogito versions.

The "read-tree --prefix" and friends were only talked about during the "bind" commit discussion, and with some experimental code in "pu". Here is my thought on their readiness:

 - "read-tree --prefix=<prefix>/" may independently be useful
   even if we choose not to go "bind" commit approach.  However
   what it does when the index already has something at
   <prefix>/ has room for improvement.  I think it should have
   an option to do an equivalent of either one-way merge or
   two-way merge for that part of subtree.  Currently it always
   rejects if the current index has anything there.
 - "write-tree --prefix=<prefix>/" is redundant for the purpose
   of "bind" commit, because we would write the whole tree to be
   recorded in the enclosing project and it is easy to pick the
   subproject part with ls-tree from such a tree.  So it needs
   an independent advocate / rationale before graduating from
   "pu".
 - "write-tree --bound=<prefix>/ --bound=<prefix>/ ..." cannot
   be emulated by any other way and may be independently useful
   outside "bind" commit context.  Maybe the option should be
   renamed to --exclude=<prefix>/ or somesuch before going to
   "master".
 - "commit-tree --bind" should stay in "pu" until other pieces
   to correctly deal with commit objects with "bind" lines are
   ready, including fsck-objects and rev-list.  It _might_ be
   safer to bump the core.repositoryformatversion automatically
   once you have such a commit object in your repo.
Previous: Mathias WaackNext: Andreas Ericsson
Message 7 of 25 in “Joining Repositories”
  1. Mathias WaackJan 18, 2006
  2. Petr BaudisJan 18, 2006
  3. Petr BaudisJan 18, 2006
  4. Mathias WaackJan 18, 2006
  5. Petr BaudisJan 18, 2006
  6. Mathias WaackJan 19, 2006
  7. Junio C HamanoJan 19, 2006
  8. Andreas EricssonJan 18, 2006
  9. Ryan AndersonJan 18, 2006
  10. Petr BaudisJan 18, 2006
  11. Ryan AndersonJan 18, 2006
  12. Linus TorvaldsJan 18, 2006
  13. Petr BaudisJan 18, 2006
  14. Junio C HamanoJan 18, 2006
  15. Linus TorvaldsJan 18, 2006
  16. Junio C HamanoJan 18, 2006
  17. Linus TorvaldsJan 18, 2006
  18. Junio C HamanoJan 18, 2006
  19. Linus TorvaldsJan 18, 2006
  20. Linus TorvaldsJan 18, 2006
  21. Linus TorvaldsJan 18, 2006
  22. Junio C HamanoJan 19, 2006
  23. Petr BaudisJan 19, 2006
  24. Ryan AndersonJan 18, 2006
  25. H. Peter AnvinJan 18, 2006

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.