Top Description Fields Constructors Methods
org.eclipse.jgit.lfs.lib

public final Class Constants

extends Object
Class Inheritance
Annotations
@SuppressWarnings:nls
Imports
java.security.MessageDigest, .NoSuchAlgorithmException, java.text.MessageFormat, org.eclipse.jgit.lfs.internal.LfsText

Misc. constants used throughout JGit LFS extension.
Since
4.3

Field Summary

Modifier and TypeField and Description
public static final String
ATTR_FILTER_DRIVER_PREFIX

Prefix for all LFS related filters.

public static final String
public static final String
DOT_LFS_CONFIG

Config file name for lfs specific configuration

public static final String
DOWNLOAD

LFS download operation.

public static final String
HDR_APPLICATION_OCTET_STREAM

"Arbitrary binary data" as defined in RFC 2046

public static final String
LFS

lfs folder/section/filter name

public static final String
LONG_HASH_FUNCTION

Hash function used natively by Git LFS extension for large objects.

public static final int
LONG_OBJECT_ID_LENGTH

A Git LFS large object hash is 256 bits, i.e. 32 bytes.

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.

public static final String
UPLOAD

LFS upload operation.

public static final String
VERIFY

LFS verify operation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static MessageDigest

Returns:

a new digest object.
newMessageDigest
()

Create a new digest function for objects.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ATTR_FILTER_DRIVER_PREFIXback to summary
public static final String ATTR_FILTER_DRIVER_PREFIX

Prefix for all LFS related filters.

Since
4.11
CONTENT_TYPE_GIT_LFS_JSONback to summary
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

DOT_LFS_CONFIGback to summary
public static final String DOT_LFS_CONFIG

Config file name for lfs specific configuration

Since
6.1
DOWNLOADback to summary
public static final String DOWNLOAD

LFS download operation.

Since
4.7
HDR_APPLICATION_OCTET_STREAMback to summary
public static final String HDR_APPLICATION_OCTET_STREAM

"Arbitrary binary data" as defined in RFC 2046

LFSback to summary
public static final String LFS

lfs folder/section/filter name

Since
4.6
LONG_HASH_FUNCTIONback to summary
public static final String LONG_HASH_FUNCTION

Hash function used natively by Git LFS extension for large objects.

Since
4.6
LONG_OBJECT_ID_LENGTHback to summary
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.

LONG_OBJECT_ID_STRING_LENGTHback to summary
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
UPLOADback to summary
public static final String UPLOAD

LFS upload operation.

Since
4.7
VERIFYback to summary
public static final String VERIFY

LFS verify operation.

Since
4.7

Constructor Detail

Constantsback to summary
public Constants()

Method Detail

newMessageDigestback to summary
public static MessageDigest newMessageDigest()

Create a new digest function for objects.

Returns:MessageDigest

a new digest object.

Exceptions
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.