public final class Constants extends Object
Modifier and Type | Field and Description |
---|---|
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.md
|
static String |
DOWNLOAD
LFS download operation.
|
static String |
HDR_APPLICATION_OCTET_STREAM
"Arbitrary binary data" as defined in
RFC 2046
|
static String |
LFS
lfs folder
|
static 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 and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
static MessageDigest |
newMessageDigest()
Create a new digest function for objects.
|
public static final String LFS
public static final 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 String UPLOAD
public static final String DOWNLOAD
public static final String VERIFY
public static final String CONTENT_TYPE_GIT_LFS_JSON
public static final String HDR_APPLICATION_OCTET_STREAM
public static MessageDigest newMessageDigest()
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.Copyright © 2017 Eclipse JGit Project. All rights reserved.