Class Constants


  • public final class Constants
    extends java.lang.Object
    Misc. constants used throughout JGit LFS extension.
    Since:
    4.3
    • Field Detail

      • LFS

        public static final java.lang.String LFS
        lfs folder/section/filter name
        Since:
        4.6
        See Also:
        Constant Field Values
      • LONG_HASH_FUNCTION

        public static final java.lang.String LONG_HASH_FUNCTION
        Hash function used natively by Git LFS extension for large objects.
        Since:
        4.6
        See Also:
        Constant Field Values
      • LONG_OBJECT_ID_LENGTH

        public static final int LONG_OBJECT_ID_LENGTH
        A Git LFS large object hash is 256 bits, i.e. 32 bytes.

        Changing this assumption is not going to be as easy as changing this declaration.

        See Also:
        Constant Field Values
      • LONG_OBJECT_ID_STRING_LENGTH

        public static final int LONG_OBJECT_ID_STRING_LENGTH
        A Git LFS large object can be expressed as a 64 character string of hexadecimal digits.
        See Also:
        LONG_OBJECT_ID_LENGTH, Constant Field Values
      • UPLOAD

        public static final java.lang.String UPLOAD
        LFS upload operation.
        Since:
        4.7
        See Also:
        Constant Field Values
      • DOWNLOAD

        public static final java.lang.String DOWNLOAD
        LFS download operation.
        Since:
        4.7
        See Also:
        Constant Field Values
      • VERIFY

        public static final java.lang.String VERIFY
        LFS verify operation.
        Since:
        4.7
        See Also:
        Constant Field Values
      • ATTR_FILTER_DRIVER_PREFIX

        public static final java.lang.String ATTR_FILTER_DRIVER_PREFIX
        Prefix for all LFS related filters.
        Since:
        4.11
        See Also:
        Constant Field Values
      • DOT_LFS_CONFIG

        public static final java.lang.String DOT_LFS_CONFIG
        Config file name for lfs specific configuration
        Since:
        6.1
        See Also:
        Constant Field Values
      • HDR_APPLICATION_OCTET_STREAM

        public static final java.lang.String HDR_APPLICATION_OCTET_STREAM
        "Arbitrary binary data" as defined in RFC 2046
        See Also:
        Constant Field Values
    • Constructor Detail

      • Constants

        public Constants()
    • Method Detail

      • newMessageDigest

        public static java.security.MessageDigest newMessageDigest()
        Create a new digest function for objects.
        Returns:
        a new digest object.
        Throws:
        java.lang.RuntimeException - this Java virtual machine does not support the required hash function. Very unlikely given that JGit uses a hash function that is in the Java reference specification.