public static class RepoCommand.DefaultRemoteReader extends java.lang.Object implements RepoCommand.RemoteReader
RepoCommand.RemoteReader callback.| Constructor and Description |
|---|
DefaultRemoteReader() |
| Modifier and Type | Method and Description |
|---|---|
RepoCommand.RemoteFile |
readFileWithMode(java.lang.String uri,
java.lang.String ref,
java.lang.String path)
Read contents and mode (i.e.
|
ObjectId |
sha1(java.lang.String uri,
java.lang.String ref)
Read a remote ref sha1.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFilepublic ObjectId sha1(java.lang.String uri, java.lang.String ref) throws GitAPIException
RepoCommand.RemoteReadersha1 in interface RepoCommand.RemoteReaderuri - The URI of the remote repositoryref - Name of the ref to lookup. May be a short-hand form, e.g.
"master" which is automatically expanded to
"refs/heads/master" if "refs/heads/master" already exists.GitAPIExceptionpublic RepoCommand.RemoteFile readFileWithMode(java.lang.String uri, java.lang.String ref, java.lang.String path) throws GitAPIException, java.io.IOException
RepoCommand.RemoteReaderreadFileWithMode in interface RepoCommand.RemoteReaderuri - The URI of the remote repositoryref - Name of the ref to lookup. May be a short-hand form, e.g.
"master" which is automatically expanded to
"refs/heads/master" if "refs/heads/master" already exists.path - The relative path (inside the repo) to the file to readGitAPIException - If the ref have an invalid or ambiguous name, or it does
not exist in the repository,java.io.IOException - If the object does not exist or is too large