diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-11-12 21:28:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-13 13:20:44 +0900 |
commit | eb0ccfd7f5ce1765ada74abf272f002e1e34d1e4 (patch) | |
tree | 9042f094bd1f12d1249d714fdd177fcbe4fbf2a4 /diff-lib.c | |
parent | Integrate hash algorithm support with repo setup (diff) | |
download | tgif-eb0ccfd7f5ce1765ada74abf272f002e1e34d1e4.tar.xz |
Switch empty tree and blob lookups to use hash abstraction
Switch the uses of empty_tree_oid and empty_blob_oid to use the
current_hash abstraction that represents the current hash algorithm in
use.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-lib.c')
-rw-r--r-- | diff-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-lib.c b/diff-lib.c index 731f0886d6..893fee432c 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -217,7 +217,7 @@ int run_diff_files(struct rev_info *revs, unsigned int option) } else if (revs->diffopt.ita_invisible_in_index && ce_intent_to_add(ce)) { diff_addremove(&revs->diffopt, '+', ce->ce_mode, - &empty_tree_oid, 0, + the_hash_algo->empty_tree, 0, ce->name, 0); continue; } |