public class Lfs extends Object
.git folder| Constructor and Description |
|---|
Lfs(Repository db)
Constructor for Lfs.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
createTmpFile()
Create a new temp file in the LFS directory
|
Path |
getLfsObjDir()
Get the object directory used by LFS
|
Path |
getLfsRoot()
Get the LFS root directory
|
Path |
getLfsTmpDir()
Get the path to the temporary directory used by LFS.
|
Path |
getMediaFile(AnyLongObjectId id)
Get the media file which stores the original content
|
public Lfs(Repository db)
db - the associated repopublic Path getLfsRoot()
public Path getLfsTmpDir()
<repo>/.git/lfs/tmppublic Path getLfsObjDir()
<repo>/.git/lfs/objectspublic Path getMediaFile(AnyLongObjectId id)
id - the id of the mediafile"<repo>/.git/lfs/objects/<firstTwoLettersOfID>/<remainingLettersOfID>"public Path createTmpFile() throws IOException
IOException - when the temp file could not be createdCopyright © 2020 Eclipse JGit Project. All rights reserved.