Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java30
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java12
2 files changed, 28 insertions, 14 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
index 4a86da7c6d..e71b64fd4b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
+++ b/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;
- 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 {
OFF, CONTINUE, DETAILED;
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
index 61f3df1fc4..8ffca259ad 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
+++ b/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
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;

Back to the top