public static interface RepoCommand.RemoteReader
RepoCommand.DefaultRemoteReader to
use ls-remote command to read the sha1 from the repository and clone the
repository to read the file. Callers may have their own quicker
implementation.@Nullable ObjectId sha1(String uri, String ref) throws GitAPIException
uri - The URI of the remote repositoryref - The ref (branch/tag/etc.) to readGitAPIExceptionbyte[] readFile(String uri, String ref, String path) throws GitAPIException, IOException
uri - The URI of the remote repositoryref - The ref (branch/tag/etc.) to readpath - The relative path (inside the repo) to the file to readGitAPIExceptionIOExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.