Add object copying to native pack transport and bundle transport
commit22fff2b08931ce04e62ac36285ff75089e2c0647
authorShawn O. Pearce <spearce@spearce.org>
Sun, 20 Apr 2008 08:34:58 +0000 (20 04:34 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:35 +0000 (11 01:16 -0400)
treef728241e090c108cedcf66b5affdc9c9bbc4b9af
parentb80c437c7edaad7ac5813a1215df44f3c2022b74
Add object copying to native pack transport and bundle transport

When fetching refs over the native pack transport we have to tell
the other side what we want, and what we have, until the other side
is able to compute a pack that gives us the data we don't have.
This is essentially the logic we have in FetchClient, but I have
rewritten it to take advantage of RevWalk and the more modular
transport API.  In the future FetchClient will disappear.

When fetching from a bundle we only need to pass the remaining data
through IndexPack, as there is no concept of partially fetching
from the contained pack.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/pgm/Fetch.java
org.spearce.jgit/src/org/spearce/jgit/transport/FetchConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/PackFetchConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineIn.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportBundle.java