public class GitCommitTree
extends java.lang.Object
Constructor and Description |
---|
GitCommitTree() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addFile(java.lang.String path,
int mode,
java.io.InputStream is,
long length)
Adds a file to the commit tree
|
java.lang.String |
addFile(java.lang.String treePath,
int mode,
Path filePath)
Adds a file to the commit tree
|
static java.lang.String |
calculateBlobDigest(java.io.InputStream is,
long length) |
java.lang.String |
commit()
Commits the tree by calculating the directory hashes
|
java.lang.String |
findPath(java.lang.String sha1)
Finds the file path given the sha1
|
GitWorkingTree |
findTree(java.lang.String path)
Finds the directory given the path
|
java.lang.String[] |
getCommitList()
Returns the commit list
|
java.lang.String |
getDigest() |
java.lang.String |
toString() |
static java.io.InputStream |
writeBlob(java.io.InputStream is,
long length) |
public java.lang.String addFile(java.lang.String treePath, int mode, Path filePath) throws java.io.IOException
java.io.IOException
public java.lang.String addFile(java.lang.String path, int mode, java.io.InputStream is, long length) throws java.io.IOException
java.io.IOException
public java.lang.String findPath(java.lang.String sha1)
public GitWorkingTree findTree(java.lang.String path)
public java.lang.String commit()
public java.lang.String getDigest()
public java.lang.String[] getCommitList()
public static java.lang.String calculateBlobDigest(java.io.InputStream is, long length) throws java.io.IOException
java.io.IOException
public static java.io.InputStream writeBlob(java.io.InputStream is, long length) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object