From: Shawn O. Pearce Date: Wed, 25 Aug 2010 01:18:24 +0000 (-0700) Subject: Cleanup and correct resolve Javadoc X-Git-Tag: v0.9.1~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a972f86648ccae976c8f6d6f6521be37c8fead1;p=jgit.git Cleanup and correct resolve Javadoc We didn't fully cover what we support and what we don't. It was also a bit hard to follow the syntaxes supported. Clean that up by documenting it. Change-Id: I7b96fa6cbefcc2364a51f336712ad361ae42df2d Signed-off-by: Shawn O. Pearce --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index c3d1d49489..5c8b15f5a6 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -374,20 +374,34 @@ public abstract class Repository { /** * Parse a git revision string and return an object id. * - * Currently supported is combinations of these. + * Combinations of these operators are supported: * * - * Not supported is: + *

+ * The following operators are specified by Git conventions, but are not + * supported by this method: *

* * @param revstr @@ -397,6 +411,12 @@ public abstract class Repository { * {@code revstr} contains an abbreviated ObjectId and this * repository contains more than one object which match to the * input abbreviation. + * @throws IncorrectObjectTypeException + * the id parsed does not meet the type required to finish + * applying the operators in the expression. + * @throws RevisionSyntaxException + * the expression is not supported by this implementation, or + * does not meet the standard syntax. * @throws IOException * on serious errors */