Class GitProtocolConstants


  • public final class GitProtocolConstants
    extends java.lang.Object
    Wire constants for the native Git protocol.
    Since:
    3.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CAPABILITY_ATOMIC
      The client supports atomic pushes.
      static java.lang.String CAPABILITY_DELETE_REFS
      The server supports deleting refs.
      static java.lang.String CAPABILITY_OFS_DELTA
      The server supports packs with OFS deltas.
      static java.lang.String CAPABILITY_PUSH_CERT
      The server allows recording of push certificates.
      static java.lang.String CAPABILITY_PUSH_OPTIONS
      The server supports the receiving of push options.
      static java.lang.String CAPABILITY_QUIET
      The client expects less noise, e.g.
      static java.lang.String CAPABILITY_REF_IN_WANT
      The server supports the client specifying ref names.
      static java.lang.String CAPABILITY_REPORT_STATUS
      The client expects a status report after the server processes the pack.
      static java.lang.String CAPABILITY_SERVER_OPTION
      The server supports arbitrary options
      static java.lang.String CAPABILITY_SIDE_BAND_64K
      The client supports using the 64K side-band for progress messages.
      static java.lang.String COMMAND_FETCH
      The server supports fetch using protocol v2.
      static java.lang.String COMMAND_LS_REFS
      The server supports listing refs using protocol v2.
      static java.lang.String COMMAND_OBJECT_INFO
      The server supports the object-info capability.
      static java.lang.String OPTION_AGENT
      Implementation name and version of the client or server.
      static java.lang.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 java.lang.String OPTION_ALLOW_TIP_SHA1_IN_WANT
      The client supports fetching objects at the tip of any ref, even if not advertised.
      static java.lang.String OPTION_DEEPEN_RELATIVE
      The client wants the "deepen" command to be interpreted as relative to the client's shallow commits.
      static java.lang.String OPTION_FILTER
      The client specified a filter expression.
      static java.lang.String OPTION_INCLUDE_TAG
      Include tags if we are also including the referenced objects.
      static java.lang.String OPTION_MULTI_ACK
      Multi-ACK support for improved negotiation.
      static java.lang.String OPTION_MULTI_ACK_DETAILED
      Multi-ACK detailed support for improved negotiation.
      static java.lang.String OPTION_NO_DONE
      The client supports receiving a pack before it has sent "done".
      static java.lang.String OPTION_NO_PROGRESS
      The client does not want progress messages and will ignore them.
      static java.lang.String OPTION_OFS_DELTA
      The client supports packs with OFS deltas.
      static java.lang.String OPTION_PUSH_CERT
      The client will send a push certificate.
      static java.lang.String OPTION_SERVER_OPTION
      Option for passing application-specific options to the server.
      static java.lang.String OPTION_SHALLOW
      The client supports shallow fetches.
      static java.lang.String OPTION_SIDE_BAND
      The client supports using the side-band for progress messages.
      static java.lang.String OPTION_SIDE_BAND_64K
      The client supports using the 64K side-band for progress messages.
      static java.lang.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 java.lang.String OPTION_SYMREF
      Symbolic reference support for better negotiation.
      static java.lang.String OPTION_THIN_PACK
      The client supports packs with deltas but not their bases.
      static java.lang.String OPTION_WAIT_FOR_DONE
      The server waits for client to send "done" before sending any packs back.
      static java.lang.String OPTION_WANT_REF
      The client specified a want-ref expression.
      static java.lang.String PROTOCOL_ENVIRONMENT_VARIABLE
      Environment variable to set by clients to request a specific git protocol in the file:// and ssh:// transports.
      static java.lang.String PROTOCOL_HEADER
      HTTP header to set by clients to request a specific git protocol version in the HTTP transport.
      static java.lang.String REF_ATTR_PEELED
      Protocol V2 ref advertisement attribute containing the peeled object id for annotated tags.
      static java.lang.String REF_ATTR_SYMREF_TARGET
      Protocol V2 ref advertisement attribute containing the name of the ref for symbolic refs.
      static java.lang.String SECTION_ACKNOWLEDGMENTS
      Protocol V2 acknowledgments section header.
      static java.lang.String SECTION_PACKFILE
      Protocol V2 packfile section header.
      static java.lang.String VERSION_1
      Protocol announcement for protocol version 1.
      static java.lang.String VERSION_2
      Protocol announcement for protocol version 2.
      static java.lang.String VERSION_2_REQUEST
      Protocol request for protocol version 2.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OPTION_INCLUDE_TAG

        public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String OPTION_OFS_DELTA
        The client supports packs with OFS deltas.
        Since:
        3.2
        See Also:
        Constant Field Values
      • OPTION_SHALLOW

        public static final java.lang.String OPTION_SHALLOW
        The client supports shallow fetches.
        Since:
        3.2
        See Also:
        Constant Field Values
      • OPTION_DEEPEN_RELATIVE

        public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String OPTION_SYMREF
        Symbolic reference support for better negotiation.
        Since:
        3.6
        See Also:
        Constant Field Values
      • OPTION_PUSH_CERT

        public static final java.lang.String OPTION_PUSH_CERT
        The client will send a push certificate.
        Since:
        4.0
        See Also:
        Constant Field Values
      • OPTION_FILTER

        public static final java.lang.String OPTION_FILTER
        The client specified a filter expression.
        Since:
        5.0
        See Also:
        Constant Field Values
      • OPTION_WANT_REF

        public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String CAPABILITY_DELETE_REFS
        The server supports deleting refs.
        Since:
        3.2
        See Also:
        Constant Field Values
      • CAPABILITY_OFS_DELTA

        public static final java.lang.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 java.lang.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 java.lang.String CAPABILITY_PUSH_CERT
        The server allows recording of push certificates.
        Since:
        4.0
        See Also:
        Constant Field Values
      • OPTION_AGENT

        public static final java.lang.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 java.lang.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 java.lang.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 java.lang.String CAPABILITY_SERVER_OPTION
        The server supports arbitrary options
        Since:
        5.2
        See Also:
        Constant Field Values
      • OPTION_SERVER_OPTION

        public static final java.lang.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 java.lang.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 java.lang.String COMMAND_FETCH
        The server supports fetch using protocol v2.
        Since:
        5.0
        See Also:
        Constant Field Values
      • COMMAND_OBJECT_INFO

        public static final java.lang.String COMMAND_OBJECT_INFO
        The server supports the object-info capability.
        Since:
        5.13
        See Also:
        Constant Field Values
      • PROTOCOL_HEADER

        public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String SECTION_ACKNOWLEDGMENTS
        Protocol V2 acknowledgments section header.
        Since:
        5.11
        See Also:
        Constant Field Values
      • SECTION_PACKFILE

        public static final java.lang.String SECTION_PACKFILE
        Protocol V2 packfile section header.
        Since:
        5.11
        See Also:
        Constant Field Values
      • VERSION_1

        public static final java.lang.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 java.lang.String VERSION_2
        Protocol announcement for protocol version 2.
        Since:
        5.11
        See Also:
        Constant Field Values
      • VERSION_2_REQUEST

        public static final java.lang.String VERSION_2_REQUEST
        Protocol request for protocol version 2.
        Since:
        5.11
        See Also:
        Constant Field Values
    • Constructor Detail

      • GitProtocolConstants

        private GitProtocolConstants()