diff options
author | Philipp Marx <smigfu@googlemail.com> | 2016-03-07 22:55:46 +0100 |
---|---|---|
committer | Philipp Marx <smigfu@googlemail.com> | 2016-03-07 22:55:46 +0100 |
commit | 011e5da3e0727d9a2cdfb3261ef78e5067380eab (patch) | |
tree | a527e6a733faef0bce9d75a690b778b5442ef8cf /org.eclipse.jgit | |
parent | 846ef78a02edceb99940d7aa92dcd2462a85c602 (diff) | |
download | jgit-011e5da3e0727d9a2cdfb3261ef78e5067380eab.tar.gz jgit-011e5da3e0727d9a2cdfb3261ef78e5067380eab.zip |
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 <smigfu@googlemail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java | 10 |
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; } |