]> git.ipfire.org Git - thirdparty/git.git/commit
make is_empty_blob_sha1 available everywhere
authorJeff King <peff@peff.net>
Thu, 22 Mar 2012 18:53:39 +0000 (14:53 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Mar 2012 20:52:13 +0000 (13:52 -0700)
commitf8582cad8d11cae15e73fe5213b6180ee4b9fcce
tree245bdd3d26d92b1a44c7ac42d88141b3d623acfe
parentcba595bd21fd0731e37898dbd6c5b55f65fd8aea
make is_empty_blob_sha1 available everywhere

The read-cache implementation defines this static function,
but it is a generally useful concept in git. Let's give
the empty blob the same treatment as the empty tree,
providing both hex and binary forms of the sha1.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
read-cache.c