From 3a972f86648ccae976c8f6d6f6521be37c8fead1 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 24 Aug 2010 18:18:24 -0700 Subject: [PATCH] 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 --- .../src/org/eclipse/jgit/lib/Repository.java | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) 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 */ -- 2.39.5