Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2016-03-08 01:11:59 +0000
committerGerrit Code Review @ Eclipse.org2016-03-08 01:12:00 +0000
commit6bcd8c6e90c18db3ccae288a20e80709bd99e4a8 (patch)
tree81b9a012b793734e3139a3b1239511f0ad5b5457
parentb811e4399ea578a07595bac790ad619b9fcb1300 (diff)
parent011e5da3e0727d9a2cdfb3261ef78e5067380eab (diff)
downloadjgit-6bcd8c6e90c18db3ccae288a20e80709bd99e4a8.tar.gz
jgit-6bcd8c6e90c18db3ccae288a20e80709bd99e4a8.tar.xz
jgit-6bcd8c6e90c18db3ccae288a20e80709bd99e4a8.zip
Merge "Change visibility of DirCacheTree#getObjectId to public"
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java
index 0cbb83d6e2..8bcf4bf3e0 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java
@@ -249,7 +249,15 @@ public class DirCacheTree {
return children[i];
}
- ObjectId getObjectId() {
+ /**
+ * Get the tree's ObjectId.
+ * <p>
+ * If {@link #isValid()} returns false this method will return null.
+ *
+ * @return ObjectId of this tree or null.
+ * @since 4.3
+ */
+ public ObjectId getObjectId() {
return id;
}

Back to the top