]> source.dussan.org Git - jgit.git/commitdiff
Allow to set target of DescribeCommand 84/17284/2
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 10 Oct 2013 16:32:03 +0000 (18:32 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 10 Oct 2013 22:11:00 +0000 (00:11 +0200)
Change-Id: I04805ce20cc203f5e491406c39b71e7017553b37
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java

index ec85c5abe06b31b923b81284c022bf6cbc819ce0..863104b66348cd6924c15db005a121a48dec66da 100644 (file)
@@ -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));