Package org.eclipse.jgit.lfs.lib
Class Constants
- java.lang.Object
-
- org.eclipse.jgit.lfs.lib.Constants
-
public final class Constants extends java.lang.Object
Misc. constants used throughout JGit LFS extension.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTR_FILTER_DRIVER_PREFIX
Prefix for all LFS related filters.static java.lang.String
CONTENT_TYPE_GIT_LFS_JSON
Content type used by LFS REST API as defined in https://github.com/github/git-lfs/blob/master/docs/api/v1/http-v1-batch.mdstatic java.lang.String
DOT_LFS_CONFIG
Config file name for lfs specific configurationstatic java.lang.String
DOWNLOAD
LFS download operation.static java.lang.String
HDR_APPLICATION_OCTET_STREAM
"Arbitrary binary data" as defined in RFC 2046static java.lang.String
LFS
lfs folder/section/filter namestatic java.lang.String
LONG_HASH_FUNCTION
Hash function used natively by Git LFS extension for large objects.static int
LONG_OBJECT_ID_LENGTH
A Git LFS large object hash is 256 bits, i.e.static int
LONG_OBJECT_ID_STRING_LENGTH
A Git LFS large object can be expressed as a 64 character string of hexadecimal digits.static java.lang.String
UPLOAD
LFS upload operation.static java.lang.String
VERIFY
LFS verify operation.
-
Constructor Summary
Constructors Constructor Description Constants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.MessageDigest
newMessageDigest()
Create a new digest function for objects.
-
-
-
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
-
CONTENT_TYPE_GIT_LFS_JSON
public static final java.lang.String CONTENT_TYPE_GIT_LFS_JSON
Content type used by LFS REST API as defined in https://github.com/github/git-lfs/blob/master/docs/api/v1/http-v1-batch.md- 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
-
-
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.
-
-