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

Re: Joining Repositories

From
Petr Baudis <pasky@suse.cz>
Date
Jan 19, 2006, 09:03 UTC
Message-ID
<20060119090348.GX28365@pasky.or.cz>
In-Reply-To
<7v64ohotjj.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Thu, Jan 19, 2006 at 03:12:00AM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...

> (2) letting a subproject keep its own independent history that
> does not know about other subprojects even after combination
> happens (as opposed to the coolest merge, after which there is
> no git history that does not have gitk as its part).

Which can be an advantage or disadvantage depending on the situation, but I suspect that it would be rather a disadvantage here.

> So would Cogito subprojects support (will it be in the 0.17?),

Probably in 0.18. I would have the subprojects support complete when it's already in, and it will be some work, while I don't want to postpone 0.17 much anymore. But we'll see. ;)

Show 5 quoted lines
> but it might look less powerful when compared with the "bind" or
> "gitlink", if it comes in the form of the patch Pasky sent to
> the list, since it does not attempt to tie the versions of two
> projects together.  Certainly that makes it the easiest to use
> and understand what is going on, though.

By now (I wanted to note that in the original thread when I get to make a new patch), I've decided to extend the format to allow extra information stored for the subprojects:

	path\t...

This means that I will have to do preprocessing when using this as an exclude file, but it will let me do the stuff like read-only subprojects. I could also tie it to a specific version here, but if gitlink/binds are after all going to get included in Git, I'd rather use that when it is ready (although the single-git-directory approach does not make sense to me; but I didn't read part of the thread very carefully yet).

I think the approaches might be complementary, Cogito subprojects are just designed for different scenarios than gitlinks.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
Previous: Junio C HamanoNext: Ryan Anderson
Message 23 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.