public static class RepoCommand.DefaultRemoteReader extends Object implements RepoCommand.RemoteReader
RepoCommand.RemoteReader
callback.Constructor and Description |
---|
RepoCommand.DefaultRemoteReader() |
public ObjectId sha1(String uri, String ref) throws GitAPIException
RepoCommand.RemoteReader
sha1
in interface RepoCommand.RemoteReader
uri
- The URI of the remote repositoryref
- The ref (branch/tag/etc.) to readGitAPIException
public byte[] readFile(String uri, String ref, String path) throws GitAPIException, IOException
RepoCommand.RemoteReader
readFile
in interface RepoCommand.RemoteReader
uri
- The URI of the remote repositoryref
- The ref (branch/tag/etc.) to readpath
- The relative path (inside the repo) to the file to readGitAPIException
IOException
Copyright © 2014. All rights reserved.