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

Re: Joining Repositories

From
MWMathias Waack <mathias.waack@rantzau.de>
Date
Jan 19, 2006, 11:36 UTC
Message-ID
<200601191236.58725.Mathias.Waack@rantzau.de>
In-Reply-To
<20060118141442.GP28365@pasky.or.cz>
Hello Petr, 
On Wednesday 18 January 2006 03:14 pm, Petr Baudis wrote:
Show 5 quoted lines
> > ...git-read-tree doesn't know the parameter --prefix (just downloaded and
> > tried it on 0.99.9i). What version shall I use?
>
>   oops, it seems this is only in the latest pu branch of git. If you are
> not brave enough for that, 
I think I am;) 
Show 9 quoted lines
> you will need to use the prefix facility of 
> checkout-index instead, and it'll take much longer:
>
> 	git-read-tree $commit
> 	git-checkout-index -a --prefix=r1/
> 	rm .git/index
> 	cg-add -r r1/
> 	rm -rf r1
> 	.. then proceed with git-cat-file etc ..
Time doesn't matter (in this case). This solution seems to work. 
>   Note that I'm not sure when which feature was introduced. Your best
> bet is to just use the latest stable GIT/Cogito versions.

Thanks for your suggestions, I've got a working solution. Now I'm going to spend the remaining days of this week by trying to understand why it works.

Mathias
Previous: Petr BaudisNext: Junio C Hamano
Message 6 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.