Package org.eclipse.jgit.lfs
Class BuiltinLFS
java.lang.Object
org.eclipse.jgit.util.LfsFactory
org.eclipse.jgit.lfs.BuiltinLFS
Implementation of
LfsFactory, using built-in (optional) LFS support.- Since:
- 4.11
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.util.LfsFactory
LfsFactory.LfsInputStream, LfsFactory.LfsInstallCommand -
Method Summary
Modifier and TypeMethodDescriptionapplyCleanFilter(Repository db, InputStream input, long length, Attribute attribute) applySmudgeFilter(Repository db, ObjectLoader loader, Attribute attribute) getPrePushHook(Repository repo, PrintStream outputStream) getPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream) booleanbooleanisEnabled(Repository db) static voidregister()Activates the built-in LFS support.Methods inherited from class org.eclipse.jgit.util.LfsFactory
getAttributesForPath, getAttributesForPath, getInstance, setInstance
-
Method Details
-
register
public static void register()Activates the built-in LFS support. -
isAvailable
public boolean isAvailable()- Overrides:
isAvailablein classLfsFactory
-
applySmudgeFilter
public ObjectLoader applySmudgeFilter(Repository db, ObjectLoader loader, Attribute attribute) throws IOException - Overrides:
applySmudgeFilterin classLfsFactory- Throws:
IOException
-
applyCleanFilter
public LfsFactory.LfsInputStream applyCleanFilter(Repository db, InputStream input, long length, Attribute attribute) throws IOException - Overrides:
applyCleanFilterin classLfsFactory- Throws:
IOException
-
getPrePushHook
- Overrides:
getPrePushHookin classLfsFactory
-
getPrePushHook
@Nullable public PrePushHook getPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream) - Overrides:
getPrePushHookin classLfsFactory
-
isEnabled
- Overrides:
isEnabledin classLfsFactory- Parameters:
db- the repository- Returns:
- whether LFS is requested for the given repo.
-
getInstallCommand
- Overrides:
getInstallCommandin classLfsFactory
-