- 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 StringCAPABILITY_ATOMICThe client supports atomic pushes.static StringCAPABILITY_DELETE_REFSThe server supports deleting refs.static StringCAPABILITY_OFS_DELTAThe server supports packs with OFS deltas.static StringCAPABILITY_PUSH_CERTThe server allows recording of push certificates.static StringCAPABILITY_PUSH_OPTIONSThe server supports the receiving of push options.static StringCAPABILITY_QUIETThe client expects less noise, e.g.static StringCAPABILITY_REF_IN_WANTThe server supports the client specifying ref names.static StringCAPABILITY_REPORT_STATUSThe client expects a status report after the server processes the pack.static StringCAPABILITY_SERVER_OPTIONThe server supports arbitrary optionsstatic StringCAPABILITY_SIDE_BAND_64KThe client supports using the 64K side-band for progress messages.static StringCOMMAND_FETCHThe server supports fetch using protocol v2.static StringCOMMAND_LS_REFSThe server supports listing refs using protocol v2.static StringCOMMAND_OBJECT_INFOThe server supports the object-info capability.static StringOPTION_AGENTImplementation name and version of the client or server.static StringOPTION_ALLOW_REACHABLE_SHA1_IN_WANTThe client supports fetching objects that are reachable from a tip of a ref that is allowed to fetch.static StringOPTION_ALLOW_TIP_SHA1_IN_WANTThe client supports fetching objects at the tip of any ref, even if not advertised.static StringOPTION_DEEPEN_RELATIVEThe client wants the "deepen" command to be interpreted as relative to the client's shallow commits.static StringOPTION_FILTERThe client specified a filter expression.static StringOPTION_INCLUDE_TAGInclude tags if we are also including the referenced objects.static StringOPTION_MULTI_ACKMulti-ACK support for improved negotiation.static StringOPTION_MULTI_ACK_DETAILEDMulti-ACK detailed support for improved negotiation.static StringOPTION_NO_DONEThe client supports receiving a pack before it has sent "done".static StringOPTION_NO_PROGRESSThe client does not want progress messages and will ignore them.static StringOPTION_OFS_DELTAThe client supports packs with OFS deltas.static StringOPTION_PUSH_CERTThe client will send a push certificate.static StringOPTION_SERVER_OPTIONOption for passing application-specific options to the server.static StringOPTION_SHALLOWThe client supports shallow fetches.static StringOPTION_SIDE_BANDThe client supports using the side-band for progress messages.static StringOPTION_SIDE_BAND_64KThe client supports using the 64K side-band for progress messages.static StringOPTION_SIDEBAND_ALLThe client requested that the whole response be multiplexed, with each non-flush and non-delim pkt prefixed by a sideband designator.static StringOPTION_SYMREFSymbolic reference support for better negotiation.static StringOPTION_THIN_PACKThe client supports packs with deltas but not their bases.static StringOPTION_WAIT_FOR_DONEThe server waits for client to send "done" before sending any packs back.static StringOPTION_WANT_REFThe client specified a want-ref expression.static StringPROTOCOL_ENVIRONMENT_VARIABLEEnvironment variable to set by clients to request a specific git protocol in the file:// and ssh:// transports.static StringPROTOCOL_HEADERHTTP header to set by clients to request a specific git protocol version in the HTTP transport.static StringREF_ATTR_PEELEDProtocol V2 ref advertisement attribute containing the peeled object id for annotated tags.static StringREF_ATTR_SYMREF_TARGETProtocol V2 ref advertisement attribute containing the name of the ref for symbolic refs.static StringSECTION_ACKNOWLEDGMENTSProtocol V2 acknowledgments section header.static StringSECTION_PACKFILEProtocol V2 packfile section header.static StringVERSION_1Protocol announcement for protocol version 1.static StringVERSION_2Protocol announcement for protocol version 2.static StringVERSION_2_REQUESTProtocol 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
-
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
-
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
-
-