diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-02 00:25:57 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-02 13:59:52 +0900 |
commit | e9fe6f262eab9a262100cbd60355b8c0f346ff59 (patch) | |
tree | d53aae66667578304f5c2df4062a8d51214de33b /refs/ref-cache.c | |
parent | builtin/merge: switch tree functions to use object_id (diff) | |
download | tgif-e9fe6f262eab9a262100cbd60355b8c0f346ff59.tar.xz |
merge: convert empty tree constant to the_hash_algo
To avoid dependency on a particular hash algorithm, convert a use of
EMPTY_TREE_SHA1_HEX to use the_hash_algo->empty_tree instead. Since
both branches now use oid_to_hex, condense the if statement into a
ternary.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.c')
0 files changed, 0 insertions, 0 deletions