diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-11-12 22:28:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-13 05:20:44 +0100 |
commit | eb0ccfd7f5ce1765ada74abf272f002e1e34d1e4 (patch) | |
tree | 9042f094bd1f12d1249d714fdd177fcbe4fbf2a4 /builtin/am.c | |
parent | Integrate hash algorithm support with repo setup (diff) | |
download | git-eb0ccfd7f5ce1765ada74abf272f002e1e34d1e4.tar.xz git-eb0ccfd7f5ce1765ada74abf272f002e1e34d1e4.zip |
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 'builtin/am.c')
-rw-r--r-- | builtin/am.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c index 92c4853505..99dbde3e85 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1433,7 +1433,7 @@ static void write_index_patch(const struct am_state *state) if (!get_oid_tree("HEAD", &head)) tree = lookup_tree(&head); else - tree = lookup_tree(&empty_tree_oid); + tree = lookup_tree(the_hash_algo->empty_tree); fp = xfopen(am_path(state, "patch"), "w"); init_revisions(&rev_info, NULL); |