Package org.eclipse.jgit.lfs
Class SmudgeFilter
java.lang.Object
org.eclipse.jgit.attributes.FilterCommand
org.eclipse.jgit.lfs.SmudgeFilter
Built-in LFS smudge filter
When content is read from git's object-database and written to the filesystem
and this filter is configured for that content, then this filter will replace
the content of LFS pointer files with the original content. This happens e.g.
when a checkout needs to update a working tree file which is under LFS
control.
- Since:
- 4.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FilterCommandFactoryThe factory is responsible for creating instances ofSmudgeFilterFields inherited from class org.eclipse.jgit.attributes.FilterCommand
in, out -
Constructor Summary
ConstructorsConstructorDescriptionSmudgeFilter(Repository db, InputStream in, OutputStream out) Constructor for SmudgeFilter. -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Path>downloadLfsResource(Lfs lfs, Repository db, LfsPointer... res) Download content which is hosted on a LFS serverintrun()
-
Field Details
-
FACTORY
The factory is responsible for creating instances ofSmudgeFilter
-
-
Constructor Details
-
SmudgeFilter
Constructor for SmudgeFilter.- Parameters:
db- aRepositoryobject.in- aInputStreamobject. The stream is closed in any case.out- aOutputStreamobject.- Throws:
IOException- in case of an error
-
-
Method Details
-
downloadLfsResource
public static Collection<Path> downloadLfsResource(Lfs lfs, Repository db, LfsPointer... res) throws IOException Download content which is hosted on a LFS server- Parameters:
lfs- localLfsstorage.db- the repository to work withres- the objects to download- Returns:
- the paths of all mediafiles which have been downloaded
- Throws:
IOException- Since:
- 4.11
-
run
- Specified by:
runin classFilterCommand- Throws:
IOException
-