From 011e5da3e0727d9a2cdfb3261ef78e5067380eab Mon Sep 17 00:00:00 2001 From: Philipp Marx Date: Mon, 7 Mar 2016 22:55:46 +0100 Subject: [PATCH] Change visibility of DirCacheTree#getObjectId to public Allow access to the ObjectId of a DirCacheTree if known for low level integration code. Change-Id: I6f05b10c9ac781f5e8b38af4a19e653313c91fa8 Signed-off-by: Philipp Marx --- .../src/org/eclipse/jgit/dircache/DirCacheTree.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 0cbb83d6e..8bcf4bf3e 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. + *

+ * 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; }