summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-03-11 12:02:27 -0800
committerShawn O. Pearce <spearce@spearce.org>2010-03-11 15:15:03 -0800
commit4a73596ce4308a59813dd14b74bec2ce7a406b80 (patch)
treee2fe0e0417e85eebd3e7ff4b48774646dccde909 /org.eclipse.jgit
parent8e2c17ca2addd984f1ba239aca27f19698606ed9 (diff)
downloadjgit-4a73596ce4308a59813dd14b74bec2ce7a406b80.tar.gz
jgit-4a73596ce4308a59813dd14b74bec2ce7a406b80.zip
eclipse-iplog: Skip the initial contribution
The initial contribution was handled through a CQ, and does not need to be reported as an individual bug record in the project's IP log. Its an odd corner case that the EMO IP team doesn't want to see, even though its technically a contribution written by at least some non-committers. The project.skipCommit variable can now be used to mask out any particular change from the IP log. Currently within JGit we want to mask only the initial commit, but others could be masked if the need arises. Change-Id: I598e08137ddc5913284471ee2aa545f4df685023 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java
index bd57c061b6..a0b6d0ed24 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSubclassMap.java
@@ -98,6 +98,17 @@ public class ObjectIdSubclassMap<V extends ObjectId> implements Iterable<V> {
}
/**
+ * Returns true if this map contains the specified object.
+ *
+ * @param toFind
+ * object to find.
+ * @return true if the mapping exists for this object; false otherwise.
+ */
+ public boolean contains(final AnyObjectId toFind) {
+ return get(toFind) != null;
+ }
+
+ /**
* Store an object for future lookup.
* <p>
* An existing mapping for <b>must not</b> be in this map. Callers must