]> git.ipfire.org Git - thirdparty/git.git/commit - object-file.c
sha1-file: add functions for hex empty tree and blob OIDs
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:25:54 +0000 (00:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:51 +0000 (13:59 +0900)
commitd8a92ced62f758fedad95a192978b910b1cc498a
tree86f77771deecf03d6ba6e14f13fada96e1a66b5e
parentf6d27d2468ccf8e123f9bffde6466d673dba2317
sha1-file: add functions for hex empty tree and blob OIDs

Oftentimes, we'll want to refer to an empty tree or empty blob by its
hex name without having to call oid_to_hex or explicitly refer to
the_hash_algo.  Add helper functions that format these values into
static buffers and return them for easy use.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
sha1_file.c