diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-04 20:52:30 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-04 20:52:30 +0300 |
commit | 3365e2675e5ac95e0a44665966e8cfbb9433456e (patch) | |
tree | 634776d7ea6a0145f95ae84e1b9f1c651387a37e /packfile.c | |
parent | dd68b57fc404e9117385879460a63a25f8b3c354 (diff) | |
parent | 08e5fb1296238c9c4468ae2cfbd7a49045159c60 (diff) |
Merge branch 'jc/retire-get-sha1-hex'
The implementation of "get_sha1_hex()" that reads a hexadecimal
string that spells a full object name has been extended to cope
with any hash function used in the repository, but the "sha1" in
its name survived. Rename it to get_hash_hex(), a name that is
more consistent within its friends like get_hash_hex_algop().
* jc/retire-get-sha1-hex:
hex: retire get_sha1_hex()
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c index 20995654f9..9cc0a2e37a 100644 --- a/packfile.c +++ b/packfile.c @@ -751,7 +751,7 @@ struct packed_git *add_packed_git(const char *path, size_t path_len, int local) p->pack_local = local; p->mtime = st.st_mtime; if (path_len < the_hash_algo->hexsz || - get_sha1_hex(path + path_len - the_hash_algo->hexsz, p->hash)) + get_hash_hex(path + path_len - the_hash_algo->hexsz, p->hash)) hashclr(p->hash); return p; } |