Package org.eclipse.jgit.transport
Class GitProtocolConstants
- java.lang.Object
-
- org.eclipse.jgit.transport.GitProtocolConstants
-
public final class GitProtocolConstants extends Object
Wire constants for the native Git protocol.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
CAPABILITY_ATOMIC
The client supports atomic pushes.static String
CAPABILITY_DELETE_REFS
The server supports deleting refs.static String
CAPABILITY_OFS_DELTA
The server supports packs with OFS deltas.static String
CAPABILITY_PUSH_CERT
The server allows recording of push certificates.static String
CAPABILITY_PUSH_OPTIONS
The server supports the receiving of push options.static String
CAPABILITY_QUIET
The client expects less noise, e.g.static String
CAPABILITY_REF_IN_WANT
The server supports the client specifying ref names.static String
CAPABILITY_REPORT_STATUS
The client expects a status report after the server processes the pack.static String
CAPABILITY_SERVER_OPTION
The server supports arbitrary optionsstatic String
CAPABILITY_SHALLOW
The server supports the receiving of shallow options.static String
CAPABILITY_SIDE_BAND_64K
The client supports using the 64K side-band for progress messages.static String
COMMAND_FETCH
The server supports fetch using protocol v2.static String
COMMAND_LS_REFS
The server supports listing refs using protocol v2.static String
COMMAND_OBJECT_INFO
The server supports the object-info capability.static String
OPTION_AGENT
Implementation name and version of the client or server.static 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.static String
OPTION_ALLOW_TIP_SHA1_IN_WANT
The client supports fetching objects at the tip of any ref, even if not advertised.static String
OPTION_DEEPEN_RELATIVE
The client wants the "deepen" command to be interpreted as relative to the client's shallow commits.static String
OPTION_FILTER
The client specified a filter expression.static String
OPTION_INCLUDE_TAG
Include tags if we are also including the referenced objects.static String
OPTION_MULTI_ACK
Multi-ACK support for improved negotiation.static String
OPTION_MULTI_ACK_DETAILED
Multi-ACK detailed support for improved negotiation.static String
OPTION_NO_DONE
The client supports receiving a pack before it has sent "done".static String
OPTION_NO_PROGRESS
The client does not want progress messages and will ignore them.static String
OPTION_OFS_DELTA
The client supports packs with OFS deltas.static String
OPTION_PUSH_CERT
The client will send a push certificate.static String
OPTION_SERVER_OPTION
Option for passing application-specific options to the server.static String
OPTION_SHALLOW
The client supports shallow fetches.static String
OPTION_SIDE_BAND
The client supports using the side-band for progress messages.static String
OPTION_SIDE_BAND_64K
The client supports using the 64K side-band for progress messages.static 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.static String
OPTION_SYMREF
Symbolic reference support for better negotiation.static String
OPTION_THIN_PACK
The client supports packs with deltas but not their bases.static String
OPTION_WAIT_FOR_DONE
The server waits for client to send "done" before sending any packs back.static String
OPTION_WANT_REF
The client specified a want-ref expression.static String
PACKET_ACK
An "ACK" packet beginning.static String
PACKET_DEEPEN
A "deepen" packet beginning.static String
PACKET_DEEPEN_NOT
A "deepen-not" packet beginning.static String
PACKET_DEEPEN_SINCE
A "deepen-since" packet beginning.static String
PACKET_DELIM
The delimiter packet in protocol V2.static String
PACKET_DONE
A "done" packet beginning.static String
PACKET_END
An alias forPACKET_FLUSH
.static String
PACKET_ERR
A "ERR" packet beginning.static String
PACKET_FLUSH
The flush packet.static String
PACKET_HAVE
A "have" packet beginning.static String
PACKET_SHALLOW
A "shallow" packet beginning.static String
PACKET_UNSHALLOW
A "shallow" packet beginning.static String
PACKET_WANT
A "want" packet beginning.static String
PACKET_WANT_REF
A "want-ref" packet beginning.static String
PROTOCOL_ENVIRONMENT_VARIABLE
Environment variable to set by clients to request a specific git protocol in the file:// and ssh:// transports.static String
PROTOCOL_HEADER
HTTP header to set by clients to request a specific git protocol version in the HTTP transport.static String
REF_ATTR_PEELED
Protocol V2 ref advertisement attribute containing the peeled object id for annotated tags.static String
REF_ATTR_SYMREF_TARGET
Protocol V2 ref advertisement attribute containing the name of the ref for symbolic refs.static String
SECTION_ACKNOWLEDGMENTS
Protocol V2 acknowledgments section header.static String
SECTION_PACKFILE
Protocol V2 packfile section header.static String
SECTION_SHALLOW_INFO
Protocol V2 shallow-info section header.static String
VERSION_1
Protocol announcement for protocol version 1.static String
VERSION_2
Protocol announcement for protocol version 2.static String
VERSION_2_REQUEST
Protocol request for protocol version 2.
-
-
-
Field Detail
-
OPTION_INCLUDE_TAG
public static final String OPTION_INCLUDE_TAG
Include tags if we are also including the referenced objects.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_MULTI_ACK
public static final String OPTION_MULTI_ACK
Multi-ACK support for improved negotiation.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_MULTI_ACK_DETAILED
public static final String OPTION_MULTI_ACK_DETAILED
Multi-ACK detailed support for improved negotiation.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_THIN_PACK
public static final String OPTION_THIN_PACK
The client supports packs with deltas but not their bases.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_SIDE_BAND
public static final String OPTION_SIDE_BAND
The client supports using the side-band for progress messages.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_SIDE_BAND_64K
public static final String OPTION_SIDE_BAND_64K
The client supports using the 64K side-band for progress messages.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_OFS_DELTA
public static final String OPTION_OFS_DELTA
The client supports packs with OFS deltas.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_SHALLOW
public static final String OPTION_SHALLOW
The client supports shallow fetches.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_DEEPEN_RELATIVE
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
- See Also:
- Constant Field Values
-
OPTION_NO_PROGRESS
public static final String OPTION_NO_PROGRESS
The client does not want progress messages and will ignore them.- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_NO_DONE
public static final String OPTION_NO_DONE
The client supports receiving a pack before it has sent "done".- Since:
- 3.2
- See Also:
- Constant Field Values
-
OPTION_ALLOW_TIP_SHA1_IN_WANT
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
- See Also:
- Constant Field Values
-
OPTION_ALLOW_REACHABLE_SHA1_IN_WANT
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
- See Also:
- Constant Field Values
-
OPTION_SYMREF
public static final String OPTION_SYMREF
Symbolic reference support for better negotiation.- Since:
- 3.6
- See Also:
- Constant Field Values
-
OPTION_PUSH_CERT
public static final String OPTION_PUSH_CERT
The client will send a push certificate.- Since:
- 4.0
- See Also:
- Constant Field Values
-
OPTION_FILTER
public static final String OPTION_FILTER
The client specified a filter expression.- Since:
- 5.0
- See Also:
- Constant Field Values
-
OPTION_WANT_REF
public static final String OPTION_WANT_REF
The client specified a want-ref expression.- Since:
- 5.1
- See Also:
- Constant Field Values
-
OPTION_SIDEBAND_ALL
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
- See Also:
- Constant Field Values
-
OPTION_WAIT_FOR_DONE
public static final String OPTION_WAIT_FOR_DONE
The server waits for client to send "done" before sending any packs back.- Since:
- 5.13
- See Also:
- Constant Field Values
-
CAPABILITY_ATOMIC
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
- See Also:
- Constant Field Values
-
CAPABILITY_QUIET
public static final String CAPABILITY_QUIET
The client expects less noise, e.g. no progress.- Since:
- 4.0
- See Also:
- Constant Field Values
-
CAPABILITY_REPORT_STATUS
public static final String CAPABILITY_REPORT_STATUS
The client expects a status report after the server processes the pack.- Since:
- 3.2
- See Also:
- Constant Field Values
-
CAPABILITY_DELETE_REFS
public static final String CAPABILITY_DELETE_REFS
The server supports deleting refs.- Since:
- 3.2
- See Also:
- Constant Field Values
-
CAPABILITY_OFS_DELTA
public static final String CAPABILITY_OFS_DELTA
The server supports packs with OFS deltas.- Since:
- 3.2
- See Also:
- Constant Field Values
-
CAPABILITY_SIDE_BAND_64K
public static final String CAPABILITY_SIDE_BAND_64K
The client supports using the 64K side-band for progress messages.- Since:
- 3.2
- See Also:
- Constant Field Values
-
CAPABILITY_PUSH_CERT
public static final String CAPABILITY_PUSH_CERT
The server allows recording of push certificates.- Since:
- 4.0
- See Also:
- Constant Field Values
-
OPTION_AGENT
public static final String OPTION_AGENT
Implementation name and version of the client or server.- Since:
- 4.0
- See Also:
- Constant Field Values
-
CAPABILITY_PUSH_OPTIONS
public static final String CAPABILITY_PUSH_OPTIONS
The server supports the receiving of push options.- Since:
- 4.5
- See Also:
- Constant Field Values
-
CAPABILITY_REF_IN_WANT
public static final String CAPABILITY_REF_IN_WANT
The server supports the client specifying ref names.- Since:
- 5.1
- See Also:
- Constant Field Values
-
CAPABILITY_SERVER_OPTION
public static final String CAPABILITY_SERVER_OPTION
The server supports arbitrary options- Since:
- 5.2
- See Also:
- Constant Field Values
-
CAPABILITY_SHALLOW
public static final String CAPABILITY_SHALLOW
The server supports the receiving of shallow options.- Since:
- 6.3
- See Also:
- Constant Field Values
-
OPTION_SERVER_OPTION
public static final String OPTION_SERVER_OPTION
Option for passing application-specific options to the server.- Since:
- 5.2
- See Also:
- Constant Field Values
-
COMMAND_LS_REFS
public static final String COMMAND_LS_REFS
The server supports listing refs using protocol v2.- Since:
- 5.0
- See Also:
- Constant Field Values
-
COMMAND_FETCH
public static final String COMMAND_FETCH
The server supports fetch using protocol v2.- Since:
- 5.0
- See Also:
- Constant Field Values
-
COMMAND_OBJECT_INFO
public static final String COMMAND_OBJECT_INFO
The server supports the object-info capability.- Since:
- 5.13
- See Also:
- Constant Field Values
-
PROTOCOL_HEADER
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
- See Also:
- Constant Field Values
-
PROTOCOL_ENVIRONMENT_VARIABLE
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
- See Also:
- Constant Field Values
-
REF_ATTR_PEELED
public static final String REF_ATTR_PEELED
Protocol V2 ref advertisement attribute containing the peeled object id for annotated tags.- Since:
- 5.11
- See Also:
- Constant Field Values
-
REF_ATTR_SYMREF_TARGET
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
- See Also:
- Constant Field Values
-
SECTION_ACKNOWLEDGMENTS
public static final String SECTION_ACKNOWLEDGMENTS
Protocol V2 acknowledgments section header.- Since:
- 5.11
- See Also:
- Constant Field Values
-
SECTION_PACKFILE
public static final String SECTION_PACKFILE
Protocol V2 packfile section header.- Since:
- 5.11
- See Also:
- Constant Field Values
-
SECTION_SHALLOW_INFO
public static final String SECTION_SHALLOW_INFO
Protocol V2 shallow-info section header.- Since:
- 6.3
- See Also:
- Constant Field Values
-
VERSION_1
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
- See Also:
- Constant Field Values
-
VERSION_2
public static final String VERSION_2
Protocol announcement for protocol version 2.- Since:
- 5.11
- See Also:
- Constant Field Values
-
VERSION_2_REQUEST
public static final String VERSION_2_REQUEST
Protocol request for protocol version 2.- Since:
- 5.11
- See Also:
- Constant Field Values
-
PACKET_FLUSH
public static final String PACKET_FLUSH
The flush packet.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_END
public static final String PACKET_END
An alias forPACKET_FLUSH
. "Flush" is the name used in the C git documentation; the Java implementation calls this "end" in several places.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_DELIM
public static final String PACKET_DELIM
The delimiter packet in protocol V2.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_DEEPEN
public static final String PACKET_DEEPEN
A "deepen" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_DEEPEN_NOT
public static final String PACKET_DEEPEN_NOT
A "deepen-not" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_DEEPEN_SINCE
public static final String PACKET_DEEPEN_SINCE
A "deepen-since" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_ACK
public static final String PACKET_ACK
An "ACK" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_DONE
public static final String PACKET_DONE
A "done" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_ERR
public static final String PACKET_ERR
A "ERR" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_HAVE
public static final String PACKET_HAVE
A "have" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_SHALLOW
public static final String PACKET_SHALLOW
A "shallow" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_UNSHALLOW
public static final String PACKET_UNSHALLOW
A "shallow" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_WANT
public static final String PACKET_WANT
A "want" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
PACKET_WANT_REF
public static final String PACKET_WANT_REF
A "want-ref" packet beginning.- Since:
- 6.3
- See Also:
- Constant Field Values
-
-