Package org.eclipse.jgit.lfs.lib
Class Constants
- java.lang.Object
-
- org.eclipse.jgit.lfs.lib.Constants
-
public final class Constants extends Object
Misc. constants used throughout JGit LFS extension.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_FILTER_DRIVER_PREFIX
Prefix for all LFS related filters.static 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 String
DOT_LFS_CONFIG
Config file name for lfs specific configurationstatic String
DOWNLOAD
LFS download operation.static String
HDR_APPLICATION_OCTET_STREAM
"Arbitrary binary data" as defined in RFC 2046static String
LFS
lfs folder/section/filter namestatic 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 String
UPLOAD
LFS upload operation.static 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 MessageDigest
newMessageDigest()
Create a new digest function for objects.
-
-
-
Field Detail
-
LFS
public static final String LFS
lfs folder/section/filter name- Since:
- 4.6
- See Also:
- Constant Field Values
-
LONG_HASH_FUNCTION
public static final 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 String UPLOAD
LFS upload operation.- Since:
- 4.7
- See Also:
- Constant Field Values
-
DOWNLOAD
public static final String DOWNLOAD
LFS download operation.- Since:
- 4.7
- See Also:
- Constant Field Values
-
VERIFY
public static final String VERIFY
LFS verify operation.- Since:
- 4.7
- See Also:
- Constant Field Values
-
ATTR_FILTER_DRIVER_PREFIX
public static final 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 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 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 String HDR_APPLICATION_OCTET_STREAM
"Arbitrary binary data" as defined in RFC 2046- See Also:
- Constant Field Values
-
-
Method Detail
-
newMessageDigest
public static MessageDigest newMessageDigest()
Create a new digest function for objects.- Returns:
- a new digest object.
- Throws:
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.
-
-