public final class Constants
extends java.lang.Object
Modifier and Type | Field and 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.md
|
static java.lang.String |
DOWNLOAD
LFS download operation.
|
static java.lang.String |
HDR_APPLICATION_OCTET_STREAM
"Arbitrary binary data" as defined in
RFC 2046
|
static java.lang.String |
LFS
lfs folder/section/filter name
|
static 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 and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
static java.security.MessageDigest |
newMessageDigest()
Create a new digest function for objects.
|
public static final java.lang.String LFS
public static final java.lang.String LONG_HASH_FUNCTION
public static final int LONG_OBJECT_ID_LENGTH
Changing this assumption is not going to be as easy as changing this declaration.
public static final int LONG_OBJECT_ID_STRING_LENGTH
LONG_OBJECT_ID_LENGTH
,
Constant Field Valuespublic static final java.lang.String UPLOAD
public static final java.lang.String DOWNLOAD
public static final java.lang.String VERIFY
public static final java.lang.String ATTR_FILTER_DRIVER_PREFIX
public static final java.lang.String CONTENT_TYPE_GIT_LFS_JSON
public static final java.lang.String HDR_APPLICATION_OCTET_STREAM
public static java.security.MessageDigest newMessageDigest()
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.