summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2013-10-10 18:32:03 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2013-10-11 00:11:00 +0200
commit3c2c8b47ff41ced17bc48fbc8cf34de3e1a3bcb2 (patch)
tree4f35e7163e350b9f8a884d0f09e3267299b33daf /org.eclipse.jgit
parentf3d323e9fededbef0acbd9e316119419b8883516 (diff)
downloadjgit-3c2c8b47ff41ced17bc48fbc8cf34de3e1a3bcb2.tar.gz
jgit-3c2c8b47ff41ced17bc48fbc8cf34de3e1a3bcb2.zip
Allow to set target of DescribeCommand
Change-Id: I04805ce20cc203f5e491406c39b71e7017553b37 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/api/DescribeCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java
index ec85c5abe0..863104b663 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java
@@ -107,7 +107,7 @@ public class DescribeCommand extends GitCommand<String> {
* @throws IOException
* a pack file or loose object could not be read.
*/
- DescribeCommand setTarget(ObjectId target) throws IOException {
+ public DescribeCommand setTarget(ObjectId target) throws IOException {
this.target = w.parseCommit(target);
return this;
}
@@ -126,7 +126,8 @@ public class DescribeCommand extends GitCommand<String> {
* @throws IOException
* a pack file or loose object could not be read.
*/
- DescribeCommand setTarget(String rev) throws IOException, RefNotFoundException {
+ public DescribeCommand setTarget(String rev) throws IOException,
+ RefNotFoundException {
ObjectId id = repo.resolve(rev);
if (id == null)
throw new RefNotFoundException(MessageFormat.format(JGitText.get().refNotResolved, rev));