git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cg-pull to pull branches, not the whole repository
@ 2005-09-14 21:31 Pavel Roskin
  2005-09-14 22:05 ` Junio C Hamano
  2005-09-14 23:34 ` Petr Baudis
  0 siblings, 2 replies; 4+ messages in thread
From: Pavel Roskin @ 2005-09-14 21:31 UTC (permalink / raw)
  To: Petr Baudis; +Cc: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-16  3:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-14 21:31 cg-pull to pull branches, not the whole repository Pavel Roskin
2005-09-14 22:05 ` Junio C Hamano
2005-09-16  3:09   ` Pavel Roskin
2005-09-14 23:34 ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).