LfsFactory, using built-in (optional) LFS support.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LfsFactory. | applyCleanFilter(Repository
the repository db, InputStream the original input input, long the expected input stream length length, Attribute the attribute used to check for LFS enablement (i.e. "merge",
"diff", "filter" from .gitattributes). attribute)Overrides org. Apply clean filtering to the given stream, writing the file content to the LFS storage if required and returning a stream to the LFS pointer instead. |
| public ObjectLoader | applySmudgeFilter(Repository
the repository db, ObjectLoader the loader for the blob loader, Attribute the attribute used to check for LFS enablement (i.e. "merge",
"diff", "filter" from .gitattributes). attribute)Overrides org. Apply smudge filtering to a given loader, potentially redirecting it to a LFS blob which is downloaded on demand. |
| public LfsFactory. | getInstallCommand()
Overrides org. Retrieve an |
| public PrePushHook | getPrePushHook(Repository
the repo, PrintStream Repository the hook is applied to.output stream outputStream)Overrides org. Retrieve a pre-push hook to be applied using the default error stream. |
| public PrePushHook | getPrePushHook(Repository
the repo, PrintStream Repository the hook is applied to.output stream outputStream, PrintStream error stream errorStream)Overrides org. Retrieve a pre-push hook to be applied. |
| public boolean | isAvailable()
Overrides org. Whether LFS support is available |
| public boolean | Returns: whether LFS is requested for the given repo.the repository db)Overrides org. Whether LFS is enabled |
| private boolean | Returns: whether LFS filter is enabled for the given .gitattribute attribute.the repository db, Attribute the attribute to check attribute)
|
| public static void |
| BuiltinLFS | back to summary |
|---|---|
| private BuiltinLFS() | |
| applyCleanFilter | back to summary |
|---|---|
| public LfsFactory. Overrides org. Doc from org. Apply clean filtering to the given stream, writing the file content to the LFS storage if required and returning a stream to the LFS pointer instead.
| |
| applySmudgeFilter | back to summary |
|---|---|
| public ObjectLoader applySmudgeFilter(Repository db, ObjectLoader loader, Attribute attribute) throws IOException Overrides org. Doc from org. Apply smudge filtering to a given loader, potentially redirecting it to a LFS blob which is downloaded on demand.
| |
| getInstallCommand | back to summary |
|---|---|
| public LfsFactory. Overrides org. Doc from org. Retrieve an
| |
| getPrePushHook | back to summary |
|---|---|
| public PrePushHook getPrePushHook(Repository repo, PrintStream outputStream) Overrides org. Doc from org. Retrieve a pre-push hook to be applied using the default error stream.
| |
| getPrePushHook | back to summary |
|---|---|
| public PrePushHook getPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Overrides org. Doc from org. Retrieve a pre-push hook to be applied.
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Overrides org. Doc from org. Whether LFS support is available
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled(Repository db) Overrides org. Doc from org. Whether LFS is enabled
| |
| isEnabled | back to summary |
|---|---|
private boolean isEnabled(Repository db, Attribute attribute)
| |
| register | back to summary |
|---|---|
| public static void register() Activates the built-in LFS support. | |