diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2014-06-12 10:50:03 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-06-12 10:50:03 +0200 |
commit | 2a562b94d64daeff220bb7e0fbb5cb63720d824c (patch) | |
tree | bc3f064a1b6897cca71f6bf5191ceaefe62534cf /org.eclipse.jgit | |
parent | e23768f779e8e958417315c7dedefb9ab899b4ea (diff) | |
download | jgit-2a562b94d64daeff220bb7e0fbb5cb63720d824c.tar.gz jgit-2a562b94d64daeff220bb7e0fbb5cb63720d824c.zip |
Add missing javadoc and since tag for RepoCommand.readFileFromRepo()
Change-Id: Ib0a98ce633e83c82a58b633c767e70d316b7254c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java index c999975539..9d8fda6ac7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java @@ -189,6 +189,20 @@ public class RepoCommand extends GitCommand<RevCommit> { } } + /** + * Read a file from the repository + * + * @param repo + * The repository containing the file + * @param ref + * The ref (branch/tag/etc.) to read + * @param path + * The relative path (inside the repo) to the file to read + * @return the file's content + * @throws GitAPIException + * @throws IOException + * @since 3.5 + */ protected byte[] readFileFromRepo(Repository repo, String ref, String path) throws GitAPIException, IOException { ObjectReader reader = repo.newObjectReader(); |