Browse Source

Make capability strings in BasePack{Fetch,Push}Connection public

Change-Id: Ib475dfc087705ea40e1db37ec9ef28a67fde6d72
stable-2.0
Dave Borowitz 13 years ago
parent
commit
2b0044f222
  1. 30
      org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
  2. 12
      org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java

30
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java

@ -120,25 +120,35 @@ public abstract class BasePackFetchConnection extends BasePackConnection
*/ */
protected static final int MIN_CLIENT_BUFFER = 2 * 32 * 46 + 8; protected static final int MIN_CLIENT_BUFFER = 2 * 32 * 46 + 8;
static final String OPTION_INCLUDE_TAG = "include-tag"; /** Include tags if we are also including the referenced objects. */
public static final String OPTION_INCLUDE_TAG = "include-tag";
static final String OPTION_MULTI_ACK = "multi_ack"; /** Mutli-ACK support for improved negotiation. */
public static final String OPTION_MULTI_ACK = "multi_ack";
static final String OPTION_MULTI_ACK_DETAILED = "multi_ack_detailed"; /** Mutli-ACK detailed support for improved negotiation. */
public static final String OPTION_MULTI_ACK_DETAILED = "multi_ack_detailed";
static final String OPTION_THIN_PACK = "thin-pack"; /** The client supports packs with deltas but not their bases. */
public static final String OPTION_THIN_PACK = "thin-pack";
static final String OPTION_SIDE_BAND = "side-band"; /** The client supports using the side-band for progress messages. */
public static final String OPTION_SIDE_BAND = "side-band";
static final String OPTION_SIDE_BAND_64K = "side-band-64k"; /** The client supports using the 64K side-band for progress messages. */
public static final String OPTION_SIDE_BAND_64K = "side-band-64k";
static final String OPTION_OFS_DELTA = "ofs-delta"; /** The client supports packs with OFS deltas. */
public static final String OPTION_OFS_DELTA = "ofs-delta";
static final String OPTION_SHALLOW = "shallow"; /** The client supports shallow fetches. */
public static final String OPTION_SHALLOW = "shallow";
static final String OPTION_NO_PROGRESS = "no-progress"; /** The client does not want progress messages and will ignore them. */
public static final String OPTION_NO_PROGRESS = "no-progress";
static final String OPTION_NO_DONE = "no-done"; /** The client supports receiving a pack before it has sent "done". */
public static final String OPTION_NO_DONE = "no-done";
static enum MultiAck { static enum MultiAck {
OFF, CONTINUE, DETAILED; OFF, CONTINUE, DETAILED;

12
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java

@ -83,13 +83,17 @@ import org.eclipse.jgit.transport.RemoteRefUpdate.Status;
*/ */
public abstract class BasePackPushConnection extends BasePackConnection implements public abstract class BasePackPushConnection extends BasePackConnection implements
PushConnection { PushConnection {
static final String CAPABILITY_REPORT_STATUS = "report-status"; /** The client expects a status report after the server processes the pack. */
public static final String CAPABILITY_REPORT_STATUS = "report-status";
static final String CAPABILITY_DELETE_REFS = "delete-refs"; /** The server supports deleting refs. */
public static final String CAPABILITY_DELETE_REFS = "delete-refs";
static final String CAPABILITY_OFS_DELTA = "ofs-delta"; /** The server supports packs with OFS deltas. */
public static final String CAPABILITY_OFS_DELTA = "ofs-delta";
static final String CAPABILITY_SIDE_BAND_64K = "side-band-64k"; /** The client supports using the 64K side-band for progress messages. */
public static final String CAPABILITY_SIDE_BAND_64K = "side-band-64k";
private final boolean thinPack; private final boolean thinPack;

Loading…
Cancel
Save