public class LfsBlobFilter extends Object
Constructor and Description |
---|
LfsBlobFilter() |
Modifier and Type | Method and Description |
---|---|
static TemporaryBuffer |
cleanLfsBlob(Repository db,
InputStream originalContent)
Run the LFS clean filter on the given stream and return a stream to the
LFS pointer file buffer.
|
static ObjectLoader |
smudgeLfsBlob(Repository db,
ObjectLoader loader)
In case the given
ObjectLoader points to a LFS pointer file
replace the loader with one pointing to the LFS media file contents. |
public static ObjectLoader smudgeLfsBlob(Repository db, ObjectLoader loader) throws IOException
ObjectLoader
points to a LFS pointer file
replace the loader with one pointing to the LFS media file contents.
Missing LFS files are downloaded on the fly - same logic as the smudge
filter.db
- the repoloader
- the loader for the blobIOException
- in case of an errorpublic static TemporaryBuffer cleanLfsBlob(Repository db, InputStream originalContent) throws IOException
db
- the Repository
originalContent
- the InputStream
to the original contentTemporaryBuffer
representing the LFS pointer. The
caller is responsible to destroy the buffer.IOException
- in case of any error.Copyright © 2018 Eclipse JGit Project. All rights reserved.