Package org.eclipse.jgit.lfs.lib
Class Constants
java.lang.Object
org.eclipse.jgit.lfs.lib.Constants
Misc. constants used throughout JGit LFS extension.
- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix for all LFS related filters.static final StringContent type used by LFS REST API as defined in https://github.com/github/git-lfs/blob/master/docs/api/v1/http-v1-batch.mdstatic final StringConfig file name for lfs specific configurationstatic final StringLFS download operation.static final String"Arbitrary binary data" as defined in RFC 2046static final Stringlfs folder/section/filter namestatic final StringHash function used natively by Git LFS extension for large objects.static final intA Git LFS large object hash is 256 bits, i.e.static final intA Git LFS large object can be expressed as a 64 character string of hexadecimal digits.static final StringLFS upload operation.static final StringLFS verify operation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LFS
lfs folder/section/filter name- Since:
- 4.6
- See Also:
-
LONG_HASH_FUNCTION
Hash function used natively by Git LFS extension for large objects.- Since:
- 4.6
- See Also:
-
LONG_OBJECT_ID_LENGTH
public static final int LONG_OBJECT_ID_LENGTHA 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:
-
LONG_OBJECT_ID_STRING_LENGTH
public static final int LONG_OBJECT_ID_STRING_LENGTHA Git LFS large object can be expressed as a 64 character string of hexadecimal digits.- See Also:
-
UPLOAD
LFS upload operation.- Since:
- 4.7
- See Also:
-
DOWNLOAD
LFS download operation.- Since:
- 4.7
- See Also:
-
VERIFY
LFS verify operation.- Since:
- 4.7
- See Also:
-
ATTR_FILTER_DRIVER_PREFIX
Prefix for all LFS related filters.- Since:
- 4.11
- See Also:
-
DOT_LFS_CONFIG
Config file name for lfs specific configuration- Since:
- 6.1
- See Also:
-
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:
-
HDR_APPLICATION_OCTET_STREAM
"Arbitrary binary data" as defined in RFC 2046- See Also:
-
-
Constructor Details
-
Constants
public Constants()
-
-
Method Details
-
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.
-