]> source.dussan.org Git - jgit.git/commitdiff
Change visibility of DirCacheTree#getObjectId to public 57/67857/2
authorPhilipp Marx <smigfu@googlemail.com>
Mon, 7 Mar 2016 21:55:46 +0000 (22:55 +0100)
committerPhilipp Marx <smigfu@googlemail.com>
Mon, 7 Mar 2016 21:55:46 +0000 (22:55 +0100)
Allow access to the ObjectId of a DirCacheTree if known for low level
integration code.

Change-Id: I6f05b10c9ac781f5e8b38af4a19e653313c91fa8
Signed-off-by: Philipp Marx <smigfu@googlemail.com>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java

index 0cbb83d6e28036b237b440d5601735ec4d5a7556..8bcf4bf3e022e47f4c7b6c1b21ef022fc6ae2e09 100644 (file)
@@ -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;
        }