]> source.dussan.org Git - jgit.git/commitdiff
Add missing javadoc and since tag for RepoCommand.readFileFromRepo() 04/28404/1
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 12 Jun 2014 08:50:03 +0000 (10:50 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 12 Jun 2014 08:50:03 +0000 (10:50 +0200)
Change-Id: Ib0a98ce633e83c82a58b633c767e70d316b7254c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

index c999975539212e1e8f1d913dcab365fabf571c8a..9d8fda6ac7eacd98b9680aa6a3ae7abfa362dedf 100644 (file)
@@ -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();