Top Description Inners Fields Constructors Methods
org.eclipse.jgit.transport

public final Class GitProtocolConstants

extends Object
Class Inheritance

Wire constants for the native Git protocol.
Since
3.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
public static final String
CAPABILITY_ATOMIC

The client supports atomic pushes.

public static final String
CAPABILITY_DELETE_REFS

The server supports deleting refs.

public static final String
CAPABILITY_OFS_DELTA

The server supports packs with OFS deltas.

public static final String
CAPABILITY_PUSH_CERT

The server allows recording of push certificates.

public static final String
CAPABILITY_PUSH_OPTIONS

The server supports the receiving of push options.

public static final String
CAPABILITY_QUIET

The client expects less noise, e.g. no progress.

public static final String
CAPABILITY_REF_IN_WANT

The server supports the client specifying ref names.

public static final String
CAPABILITY_REPORT_STATUS

The client expects a status report after the server processes the pack.

public static final String
CAPABILITY_SERVER_OPTION

The server supports arbitrary options

public static final String
CAPABILITY_SHALLOW

The server supports the receiving of shallow options.

public static final String
CAPABILITY_SIDE_BAND_64K

The client supports using the 64K side-band for progress messages.

public static final String
COMMAND_FETCH

The server supports fetch using protocol v2.

public static final String
COMMAND_LS_REFS

The server supports listing refs using protocol v2.

public static final String
COMMAND_OBJECT_INFO

The server supports the object-info capability.

public static final String
OPTION_AGENT

Implementation name and version of the client or server.

public static final String
OPTION_ALLOW_REACHABLE_SHA1_IN_WANT

The client supports fetching objects that are reachable from a tip of a ref that is allowed to fetch.

public static final String
OPTION_ALLOW_TIP_SHA1_IN_WANT

The client supports fetching objects at the tip of any ref, even if not advertised.

public static final String
OPTION_DEEPEN_RELATIVE

The client wants the "deepen" command to be interpreted as relative to the client's shallow commits.

public static final String
OPTION_FILTER

The client specified a filter expression.

public static final String
OPTION_INCLUDE_TAG

Include tags if we are also including the referenced objects.

public static final String
OPTION_MULTI_ACK

Multi-ACK support for improved negotiation.

public static final String
OPTION_MULTI_ACK_DETAILED

Multi-ACK detailed support for improved negotiation.

public static final String
OPTION_NO_DONE

The client supports receiving a pack before it has sent "done".

public static final String
OPTION_NO_PROGRESS

The client does not want progress messages and will ignore them.

public static final String
OPTION_OFS_DELTA

The client supports packs with OFS deltas.

public static final String
OPTION_PUSH_CERT

The client will send a push certificate.

public static final String
OPTION_SERVER_OPTION

Option for passing application-specific options to the server.

public static final String
OPTION_SESSION_ID

Option for passing client session ID to the server.

public static final String
OPTION_SHALLOW

The client supports shallow fetches.

public static final String
OPTION_SIDE_BAND

The client supports using the side-band for progress messages.

public static final String
OPTION_SIDE_BAND_64K

The client supports using the 64K side-band for progress messages.

public static final String
OPTION_SIDEBAND_ALL

The client requested that the whole response be multiplexed, with each non-flush and non-delim pkt prefixed by a sideband designator.

public static final String
OPTION_SYMREF

Symbolic reference support for better negotiation.

public static final String
OPTION_THIN_PACK

The client supports packs with deltas but not their bases.

public static final String
OPTION_WAIT_FOR_DONE

The server waits for client to send "done" before sending any packs back.

public static final String
OPTION_WANT_REF

The client specified a want-ref expression.

public static final String
PACKET_ACK

An "ACK" packet beginning.

public static final String
PACKET_DEEPEN

A "deepen" packet beginning.

public static final String
PACKET_DEEPEN_NOT

A "deepen-not" packet beginning.

public static final String
PACKET_DEEPEN_SINCE

A "deepen-since" packet beginning.

public static final String
PACKET_DELIM

The delimiter packet in protocol V2.

public static final String
PACKET_DONE

A "done" packet beginning.

public static final String
PACKET_END

An alias for PACKET_FLUSH.

public static final String
PACKET_ERR

A "ERR" packet beginning.

public static final String
PACKET_FLUSH

The flush packet.

public static final String
PACKET_HAVE

A "have" packet beginning.

public static final String
PACKET_SHALLOW

A "shallow" packet beginning.

public static final String
PACKET_UNSHALLOW

A "shallow" packet beginning.

public static final String
PACKET_WANT

A "want" packet beginning.

public static final String
PACKET_WANT_REF

A "want-ref" packet beginning.

public static final String
PROTOCOL_ENVIRONMENT_VARIABLE

Environment variable to set by clients to request a specific git protocol in the file:// and ssh:// transports.

public static final String
PROTOCOL_HEADER

HTTP header to set by clients to request a specific git protocol version in the HTTP transport.

public static final String
REF_ATTR_PEELED

Protocol V2 ref advertisement attribute containing the peeled object id for annotated tags.

public static final String
REF_ATTR_SYMREF_TARGET

Protocol V2 ref advertisement attribute containing the name of the ref for symbolic refs.

public static final String
SECTION_ACKNOWLEDGMENTS

Protocol V2 acknowledgments section header.

public static final String
SECTION_PACKFILE

Protocol V2 packfile section header.

public static final String
SECTION_SHALLOW_INFO

Protocol V2 shallow-info section header.

public static final String
VERSION_1

Protocol announcement for protocol version 1.

public static final String
VERSION_2

Protocol announcement for protocol version 2.

public static final String
VERSION_2_REQUEST

Protocol request for protocol version 2.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CAPABILITY_ATOMICback to summary
public static final String CAPABILITY_ATOMIC

The client supports atomic pushes. If this option is used, the server will update all refs within one atomic transaction.

Since
3.6
CAPABILITY_DELETE_REFSback to summary
public static final String CAPABILITY_DELETE_REFS

The server supports deleting refs.

Since
3.2
CAPABILITY_OFS_DELTAback to summary
public static final String CAPABILITY_OFS_DELTA

The server supports packs with OFS deltas.

Since
3.2
CAPABILITY_PUSH_CERTback to summary
public static final String CAPABILITY_PUSH_CERT

The server allows recording of push certificates.

Since
4.0
CAPABILITY_PUSH_OPTIONSback to summary
public static final String CAPABILITY_PUSH_OPTIONS

The server supports the receiving of push options.

Since
4.5
CAPABILITY_QUIETback to summary
public static final String CAPABILITY_QUIET

The client expects less noise, e.g. no progress.

Since
4.0
CAPABILITY_REF_IN_WANTback to summary
public static final String CAPABILITY_REF_IN_WANT

The server supports the client specifying ref names.

Since
5.1
CAPABILITY_REPORT_STATUSback to summary
public static final String CAPABILITY_REPORT_STATUS

The client expects a status report after the server processes the pack.

Since
3.2
CAPABILITY_SERVER_OPTIONback to summary
public static final String CAPABILITY_SERVER_OPTION

The server supports arbitrary options

Since
5.2
CAPABILITY_SHALLOWback to summary
public static final String CAPABILITY_SHALLOW

The server supports the receiving of shallow options.

Since
6.3
CAPABILITY_SIDE_BAND_64Kback to summary
public static final String CAPABILITY_SIDE_BAND_64K

The client supports using the 64K side-band for progress messages.

Since
3.2
COMMAND_FETCHback to summary
public static final String COMMAND_FETCH

The server supports fetch using protocol v2.

Since
5.0
COMMAND_LS_REFSback to summary
public static final String COMMAND_LS_REFS

The server supports listing refs using protocol v2.

Since
5.0
COMMAND_OBJECT_INFOback to summary
public static final String COMMAND_OBJECT_INFO

The server supports the object-info capability.

Since
5.13
OPTION_AGENTback to summary
public static final String OPTION_AGENT

Implementation name and version of the client or server.

Since
4.0
OPTION_ALLOW_REACHABLE_SHA1_IN_WANTback to summary
public static final String OPTION_ALLOW_REACHABLE_SHA1_IN_WANT

The client supports fetching objects that are reachable from a tip of a ref that is allowed to fetch.

Since
4.1
OPTION_ALLOW_TIP_SHA1_IN_WANTback to summary
public static final String OPTION_ALLOW_TIP_SHA1_IN_WANT

The client supports fetching objects at the tip of any ref, even if not advertised.

Since
3.2
OPTION_DEEPEN_RELATIVEback to summary
public static final String OPTION_DEEPEN_RELATIVE

The client wants the "deepen" command to be interpreted as relative to the client's shallow commits.

Since
5.0
OPTION_FILTERback to summary
public static final String OPTION_FILTER

The client specified a filter expression.

Since
5.0
OPTION_INCLUDE_TAGback to summary
public static final String OPTION_INCLUDE_TAG

Include tags if we are also including the referenced objects.

Since
3.2
OPTION_MULTI_ACKback to summary
public static final String OPTION_MULTI_ACK

Multi-ACK support for improved negotiation.

Since
3.2
OPTION_MULTI_ACK_DETAILEDback to summary
public static final String OPTION_MULTI_ACK_DETAILED

Multi-ACK detailed support for improved negotiation.

Since
3.2
OPTION_NO_DONEback to summary
public static final String OPTION_NO_DONE

The client supports receiving a pack before it has sent "done".

Since
3.2
OPTION_NO_PROGRESSback to summary
public static final String OPTION_NO_PROGRESS

The client does not want progress messages and will ignore them.

Since
3.2
OPTION_OFS_DELTAback to summary
public static final String OPTION_OFS_DELTA

The client supports packs with OFS deltas.

Since
3.2
OPTION_PUSH_CERTback to summary
public static final String OPTION_PUSH_CERT

The client will send a push certificate.

Since
4.0
OPTION_SERVER_OPTIONback to summary
public static final String OPTION_SERVER_OPTION

Option for passing application-specific options to the server.

Since
5.2
OPTION_SESSION_IDback to summary
public static final String OPTION_SESSION_ID

Option for passing client session ID to the server.

Since
6.4
OPTION_SHALLOWback to summary
public static final String OPTION_SHALLOW

The client supports shallow fetches.

Since
3.2
OPTION_SIDE_BANDback to summary
public static final String OPTION_SIDE_BAND

The client supports using the side-band for progress messages.

Since
3.2
OPTION_SIDE_BAND_64Kback to summary
public static final String OPTION_SIDE_BAND_64K

The client supports using the 64K side-band for progress messages.

Since
3.2
OPTION_SIDEBAND_ALLback to summary
public static final String OPTION_SIDEBAND_ALL

The client requested that the whole response be multiplexed, with each non-flush and non-delim pkt prefixed by a sideband designator.

Since
5.5
OPTION_SYMREFback to summary
public static final String OPTION_SYMREF

Symbolic reference support for better negotiation.

Since
3.6
OPTION_THIN_PACKback to summary
public static final String OPTION_THIN_PACK

The client supports packs with deltas but not their bases.

Since
3.2
OPTION_WAIT_FOR_DONEback to summary
public static final String OPTION_WAIT_FOR_DONE

The server waits for client to send "done" before sending any packs back.

Since
5.13
OPTION_WANT_REFback to summary
public static final String OPTION_WANT_REF

The client specified a want-ref expression.

Since
5.1
PACKET_ACKback to summary
public static final String PACKET_ACK

An "ACK" packet beginning.

Since
6.3
PACKET_DEEPENback to summary
public static final String PACKET_DEEPEN

A "deepen" packet beginning.

Since
6.3
PACKET_DEEPEN_NOTback to summary
public static final String PACKET_DEEPEN_NOT

A "deepen-not" packet beginning.

Since
6.3
PACKET_DEEPEN_SINCEback to summary
public static final String PACKET_DEEPEN_SINCE

A "deepen-since" packet beginning.

Since
6.3
PACKET_DELIMback to summary
public static final String PACKET_DELIM

The delimiter packet in protocol V2.

Since
6.3
PACKET_DONEback to summary
public static final String PACKET_DONE

A "done" packet beginning.

Since
6.3
PACKET_ENDback to summary
public static final String PACKET_END

An alias for PACKET_FLUSH. "Flush" is the name used in the C git documentation; the Java implementation calls this "end" in several places.

Since
6.3
PACKET_ERRback to summary
public static final String PACKET_ERR

A "ERR" packet beginning.

Since
6.3
PACKET_FLUSHback to summary
public static final String PACKET_FLUSH

The flush packet.

Since
6.3
PACKET_HAVEback to summary
public static final String PACKET_HAVE

A "have" packet beginning.

Since
6.3
PACKET_SHALLOWback to summary
public static final String PACKET_SHALLOW

A "shallow" packet beginning.

Since
6.3
PACKET_UNSHALLOWback to summary
public static final String PACKET_UNSHALLOW

A "shallow" packet beginning.

Since
6.3
PACKET_WANTback to summary
public static final String PACKET_WANT

A "want" packet beginning.

Since
6.3
PACKET_WANT_REFback to summary
public static final String PACKET_WANT_REF

A "want-ref" packet beginning.

Since
6.3
PROTOCOL_ENVIRONMENT_VARIABLEback to summary
public static final String PROTOCOL_ENVIRONMENT_VARIABLE

Environment variable to set by clients to request a specific git protocol in the file:// and ssh:// transports.

Since
5.11
PROTOCOL_HEADERback to summary
public static final String PROTOCOL_HEADER

HTTP header to set by clients to request a specific git protocol version in the HTTP transport.

Since
5.11
REF_ATTR_PEELEDback to summary
public static final String REF_ATTR_PEELED

Protocol V2 ref advertisement attribute containing the peeled object id for annotated tags.

Since
5.11
REF_ATTR_SYMREF_TARGETback to summary
public static final String REF_ATTR_SYMREF_TARGET

Protocol V2 ref advertisement attribute containing the name of the ref for symbolic refs.

Since
5.11
SECTION_ACKNOWLEDGMENTSback to summary
public static final String SECTION_ACKNOWLEDGMENTS

Protocol V2 acknowledgments section header.

Since
5.11
SECTION_PACKFILEback to summary
public static final String SECTION_PACKFILE

Protocol V2 packfile section header.

Since
5.11
SECTION_SHALLOW_INFOback to summary
public static final String SECTION_SHALLOW_INFO

Protocol V2 shallow-info section header.

Since
6.3
VERSION_1back to summary
public static final String VERSION_1

Protocol announcement for protocol version 1. This is the same as V0, except for this initial line.

Since
5.11
VERSION_2back to summary
public static final String VERSION_2

Protocol announcement for protocol version 2.

Since
5.11
VERSION_2_REQUESTback to summary
public static final String VERSION_2_REQUEST

Protocol request for protocol version 2.

Since
5.11

Constructor Detail

GitProtocolConstantsback to summary
private GitProtocolConstants()
org.eclipse.jgit.transport back to summary

pack-priv final Enum GitProtocolConstants.MultiAck

extends Enum<GitProtocolConstants.MultiAck>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final GitProtocolConstants.MultiAck
public static final GitProtocolConstants.MultiAck
public static final GitProtocolConstants.MultiAck

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GitProtocolConstants.MultiAck
public static GitProtocolConstants.MultiAck[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONTINUEback to summary
public static final GitProtocolConstants.MultiAck CONTINUE
DETAILEDback to summary
public static final GitProtocolConstants.MultiAck DETAILED
OFFback to summary
public static final GitProtocolConstants.MultiAck OFF

Constructor Detail

MultiAckback to summary
private MultiAck()

Method Detail

valueOfback to summary
public static GitProtocolConstants.MultiAck valueOf(String name)
valuesback to summary
public static GitProtocolConstants.MultiAck[] values()