From: Pavel Roskin Date: Wed, 14 Sep 2005 21:31:56 GMT Subject: cg-pull to pull branches, not the whole repository Message-ID: <1126733516.10827.54.camel@dv> Hello! I believe cg-pull should be changed to pull only the objects relevant to the branch rather than the whole repository. This could be more expensive in terms of processor power (since the objects would be checked for parents), but it would save the bandwidth, especially for users tracking stable branches with little changes in presence of heavily changed development branches in the same repository. To keep things simple, pulling the whole repository should be removed from cogito. Users don't need objects that are not reachable from any branch known to cogito. If I'm not tracking a branch, I don't want objects from it. To compensate for intermittently connected users, cg-pull could have an option to pull from all branches (or from all branches marked for automatic pull). Ideally, cogito should not rely on the server being able to list directories. This would allow support more protocols and servers, e.g. http servers without directory listings. Unfortunately, listings are still needed to get refs/tags and refs/heads. Any fix for that would involve git core, and I don't see an elegant fix. For git+ssh protocol, git-fetch-pack already provides a server side solution. Client side support would be needed for http and rsync. I'd like to hear comments before I attempt any hacking in this direction. -- Regards, Pavel Roskin