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, wait
readFile
public ObjectId sha1(String uri, String ref) throws GitAPIException
RepoCommand.RemoteReader
sha1
in interface RepoCommand.RemoteReader
uri
- 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.GitAPIException
public RepoCommand.RemoteFile readFileWithMode(String uri, String ref, String path) throws GitAPIException, IOException
RepoCommand.RemoteReader
readFileWithMode
in interface RepoCommand.RemoteReader
uri
- 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 © 2020 Eclipse JGit Project. All rights reserved.