Skip to main content

EMPTY_TREE_SHA

Constant EMPTY_TREE_SHA 

Source
const EMPTY_TREE_SHA: &str = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
Expand description

Git’s canonical empty-tree object (SHA-1). Diffing a parentless root commit against it yields the commit’s full contents as additions - <sha>^ doesn’t resolve for a root, so this stands in for the non-existent parent.