]> source.dussan.org Git - jgit.git/commitdiff
Add EMPTY_TREE_ID as a sibling of EMPTY_BLOB_ID 73/127473/2
authorDave Borowitz <dborowitz@google.com>
Wed, 15 Aug 2018 22:42:58 +0000 (15:42 -0700)
committerDave Borowitz <dborowitz@google.com>
Wed, 15 Aug 2018 22:59:55 +0000 (15:59 -0700)
Change-Id: Id68b3e1db7294cf9adb8b4ce8eecb1d828687eef

org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java

index d6e55c55396dba28fd080c25172c926270104469..9a4a3a2a0181ba89f5f079ed99fdde2add5b15a7 100644 (file)
@@ -695,6 +695,14 @@ public final class Constants {
        public static final ObjectId EMPTY_BLOB_ID = ObjectId
                        .fromString("e69de29bb2d1d6434b8b29ae775ad8c2e48c5391");
 
+       /**
+        * Well-known object ID for the empty tree.
+        *
+        * @since 5.1
+        */
+       public static final ObjectId EMPTY_TREE_ID = ObjectId
+                       .fromString("4b825dc642cb6eb9a060e54bf8d69288fbee4904");
+
        /**
         * Suffix of lock file name
         *