From 62562295c0faea3de11bdfe67a35a704c37d9e0b Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Wed, 15 Aug 2018 15:42:58 -0700 Subject: [PATCH] Add EMPTY_TREE_ID as a sibling of EMPTY_BLOB_ID Change-Id: Id68b3e1db7294cf9adb8b4ce8eecb1d828687eef --- org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java index d6e55c5539..9a4a3a2a01 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java @@ -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 * -- 2.39.5