On 6/19/06, Junio C Hamano <junkio@xxxxxxx> wrote:
"Aneesh Kumar" <aneesh.kumar@xxxxxxxxx> writes: > I searched the archives but didn't find anything. If i understand > correctly the sub project idea is using the gitlink object type. So > what is read-tree and write-tree with --prefix option supposed to > achieve. The --prefix option to read-tree was very useful when I did a hand merge of gitweb for example. I am reasonably sure clever people will find other uses as well.
Ok i tried this mkdir test/test1 mkdir test/test2 cd test git init-db cd test1 git init-db cd ../test2 git init-db now i do some devel under test2 now if i want to pull this with the history to toplevel directory test should i be doing cd test kvaneesh@satan:/tmp/test$ git read-tree --prefix=test1/ $(cat test1/.git/refs/heads/master) fatal: failed to unpack tree object c6c049d03f0bee0ac546ff6e436d5f6f3a5f4864 But the above command doesn't work for me. I guess i am missing something. -aneesh - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html