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 Details

    • 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:
    • OPTION_MULTI_ACK

      public static final String OPTION_MULTI_ACK
      Multi-ACK support for improved negotiation.
      Since:
      3.2
      See Also:
    • OPTION_MULTI_ACK_DETAILED

      public static final String OPTION_MULTI_ACK_DETAILED
      Multi-ACK detailed support for improved negotiation.
      Since:
      3.2
      See Also:
    • 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:
    • 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:
    • 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:
    • OPTION_OFS_DELTA

      public static final String OPTION_OFS_DELTA
      The client supports packs with OFS deltas.
      Since:
      3.2
      See Also:
    • OPTION_SHALLOW

      public static final String OPTION_SHALLOW
      The client supports shallow fetches.
      Since:
      3.2
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • OPTION_SYMREF

      public static final String OPTION_SYMREF
      Symbolic reference support for better negotiation.
      Since:
      3.6
      See Also:
    • OPTION_PUSH_CERT

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

      public static final String OPTION_FILTER
      The client specified a filter expression.
      Since:
      5.0
      See Also:
    • OPTION_WANT_REF

      public static final String OPTION_WANT_REF
      The client specified a want-ref expression.
      Since:
      5.1
      See Also:
    • 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:
    • 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:
    • 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:
    • CAPABILITY_QUIET

      public static final String CAPABILITY_QUIET
      The client expects less noise, e.g. no progress.
      Since:
      4.0
      See Also:
    • 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:
    • CAPABILITY_DELETE_REFS

      public static final String CAPABILITY_DELETE_REFS
      The server supports deleting refs.
      Since:
      3.2
      See Also:
    • CAPABILITY_OFS_DELTA

      public static final String CAPABILITY_OFS_DELTA
      The server supports packs with OFS deltas.
      Since:
      3.2
      See Also:
    • 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:
    • CAPABILITY_PUSH_CERT

      public static final String CAPABILITY_PUSH_CERT
      The server allows recording of push certificates.
      Since:
      4.0
      See Also:
    • OPTION_AGENT

      public static final String OPTION_AGENT
      Implementation name and version of the client or server.
      Since:
      4.0
      See Also:
    • CAPABILITY_PUSH_OPTIONS

      public static final String CAPABILITY_PUSH_OPTIONS
      The server supports the receiving of push options.
      Since:
      4.5
      See Also:
    • 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:
    • CAPABILITY_SERVER_OPTION

      public static final String CAPABILITY_SERVER_OPTION
      The server supports arbitrary options
      Since:
      5.2
      See Also:
    • OPTION_SERVER_OPTION

      public static final String OPTION_SERVER_OPTION
      Option for passing application-specific options to the server.
      Since:
      5.2
      See Also:
    • COMMAND_LS_REFS

      public static final String COMMAND_LS_REFS
      The server supports listing refs using protocol v2.
      Since:
      5.0
      See Also:
    • COMMAND_FETCH

      public static final String COMMAND_FETCH
      The server supports fetch using protocol v2.
      Since:
      5.0
      See Also:
    • COMMAND_OBJECT_INFO

      public static final String COMMAND_OBJECT_INFO
      The server supports the object-info capability.
      Since:
      5.13
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • SECTION_ACKNOWLEDGMENTS

      public static final String SECTION_ACKNOWLEDGMENTS
      Protocol V2 acknowledgments section header.
      Since:
      5.11
      See Also:
    • SECTION_PACKFILE

      public static final String SECTION_PACKFILE
      Protocol V2 packfile section header.
      Since:
      5.11
      See Also:
    • 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:
    • VERSION_2

      public static final String VERSION_2
      Protocol announcement for protocol version 2.
      Since:
      5.11
      See Also:
    • VERSION_2_REQUEST

      public static final String VERSION_2_REQUEST
      Protocol request for protocol version 2.
      Since:
      5.11
      See Also:
  • Constructor Details

    • GitProtocolConstants

      private GitProtocolConstants()