]> source.dussan.org Git - jgit.git/commit
Assume refs of alternates are reachable during fetch 17/2717/2
authorShawn O. Pearce <spearce@spearce.org>
Tue, 15 Mar 2011 01:52:00 +0000 (18:52 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 17 Mar 2011 17:54:15 +0000 (10:54 -0700)
commit04f7acb7e7c667b2a91cff2fe63c18df34924757
tree83d76b5694010abc579b13b1d0fc4f345735e243
parentc9a6980a422b485c23bfd99a939a378c5dd5114c
Assume refs of alternates are reachable during fetch

When fetching from a remote peer, consider all of the refs of any
alternate repository to be reachable locally, in addition to the refs
of the local repository.  This mirrors the push protocol and may avoid
unnecessary object transfer when the local repository is empty, but
its alternate and the remote share a lot of common history.

Junio C Hamano recently proposed a similar change to C Git's fetch
client, in order to work around a performance bug I identified when
fetching between two repositories that actually shared the same
alternate repository on the local system.

Change-Id: Iffb0b70e1223901ce2caac3b87ba7e0d6634d265
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java