Hi Om,
Aparently, you missed something in the understanding of the commands you
ran, I will details them to make them clear for the others too.
// create a directory and an empty repo, basicly, the .git structure with
minimun files which gonna be populated by the following commands
cd flex-whiteboard
git init
// Adds a remote named "origin" for the repository at
https://git-wip-us.apache.org/repos/asf/flex-whiteboard.git and because -f
was set, FETCH (Download all objects and refs from the repository), , btw,
if you do now a checkout of master (the only branch), it won't download
anything, everything is already here, actually, you can argue that the fetch
size is far smaller (about 200 Mb) than the result of the checkout (about
2.6Gb), it's because most of the committers have the entire SDK or parts of
the SDK inside their whiteboards and git re-use similar objects.
git remote add -f origin
https://git-wip-us.apache.org/repos/asf/flex-whiteboard.git
// Configure Git to use the spare checkout capability
git config core.sparseCheckout true
// Define the directory / directories to filter
echo '/fthomas/' >.git/info/sparse-checkout
// Does the checkout with the spare option which is almost the same than
"git read-tree -m -u HEAD".
git checkout master
I hope I have made the things clearer ;-)
-Fred
-----Message d'origine-----
From: Om
Sent: Monday, March 18, 2013 3:03 PM
To: dev@flex.apache.org
Subject: Re: Committers - preparing for Git
On Mar 18, 2013 12:52 AM, "Justin Mclean" <jus...@classsoftware.com> wrote:
Hi,
> So does this mean we picked a SCM technology that does not scale?
It scales but there a difference in that with SVN you can check out from
a directory in a SVN repo but with Git you need to check out the whole repo.
> BTW, an SVN checkout of the Flex SDK used to take me 2.5 hours or more
Odd with my slow connection (by US standards) it would take about 10
minutes.
> But not having a truly sparse checkout seems like a real problem.
Yep but that's basically the point of distributed version control works,
you can filter after you check out but initially you need to check out
everything.
You keep saying this, but it is not so. Have you tried the sparse checkout
commands that I sent yesterday?
Thanks,
Om
Justin