public static class RepoCommand.DefaultRemoteReader extends Object implements RepoCommand.RemoteReader
RepoCommand.RemoteReader callback.| Constructor and Description |
|---|
DefaultRemoteReader() |
| Modifier and Type | Method and Description |
|---|---|
RepoCommand.RemoteFile |
readFileWithMode(String uri,
String ref,
String path)
Read contents and mode (i.e.
|
ObjectId |
sha1(String uri,
String ref)
Read a remote ref sha1.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFilepublic ObjectId sha1(String uri, 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(String uri, String ref, String path) throws GitAPIException, 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,IOException - If the object does not exist or is too largeCopyright © 2019 Eclipse JGit Project. All rights reserved.