diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2009-09-25 23:54:42 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-09-26 12:51:04 -0700 |
commit | 5bdc32d3e50d8335c65e136e6b5234c5dd92a7a9 (patch) | |
tree | 52f428f14b58a13fc56a6093c5d0fd6b63131ec4 /Documentation/git-hash-object.txt | |
parent | send-email: fix obscure error when encryption=tls and smtp cannot connect (diff) | |
download | tgif-5bdc32d3e50d8335c65e136e6b5234c5dd92a7a9.tar.xz |
make 'git clone' ask the remote only for objects it cares about
Current behavior of 'git clone' when not using --mirror is to fetch
everything from the peer, and then filter out unwanted refs just before
writing them out to the cloned repository. This may become highly
inefficient if the peer has an unusual ref namespace, or if it simply
has "remotes" refs of its own, and those locally unwanted refs are
connecting to a large set of objects which becomes unreferenced as soon
as they are fetched.
Let's filter out those unwanted refs from the peer _before_ asking it
what refs we want to fetch instead, which is the most logical thing to
do anyway.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'Documentation/git-hash-object.txt')
0 files changed, 0 insertions, 0 deletions