public class GitSourceTree extends SourceFileSet
| Constructor and Description |
|---|
GitSourceTree(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.lib.ObjectId commitSha1,
java.util.List<SourceFile> sourceFiles) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
describeLocation(SourceFile sourceFile) |
java.util.Optional<java.nio.file.Path> |
getBasePath() |
void |
materializeAt(java.nio.file.Path folderPath) |
void |
materializeAtBase(java.nio.file.Path baseFolderPath) |
java.lang.String |
readContent(SourceFile sourceFile) |
getSourceFilespublic GitSourceTree(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.lib.ObjectId commitSha1,
java.util.List<SourceFile> sourceFiles)
public java.lang.String readContent(SourceFile sourceFile) throws java.io.IOException
readContent in class SourceFileSetjava.io.IOExceptionpublic java.lang.String describeLocation(SourceFile sourceFile)
describeLocation in class SourceFileSetpublic void materializeAt(java.nio.file.Path folderPath)
throws java.io.IOException
materializeAt in class SourceFileSetjava.io.IOExceptionpublic void materializeAtBase(java.nio.file.Path baseFolderPath)
throws java.io.IOException
materializeAtBase in class SourceFileSetjava.io.IOExceptionpublic java.util.Optional<java.nio.file.Path> getBasePath()
getBasePath in class SourceFileSet