Add missing javadoc and since tag for RepoCommand.readFileFromRepo()
Change-Id: Ib0a98ce633e83c82a58b633c767e70d316b7254c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
e23768f779
commit
2a562b94d6
|
@ -189,6 +189,20 @@ public byte[] readFile(String uri, String ref, String path)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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();
|
||||
|
|
Loading…
Reference in New Issue