Skip to content

Commit 3a4d7aa

Browse files
bk2204gitster
authored andcommitted
packfile: replace sha1_to_hex
Replace a use of sha1_to_hex with hash_to_hex so that this code works with a hash algorithm other than SHA-1. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e0cb7cd commit 3a4d7aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packfile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
#include "commit-graph.h"
2020

2121
char *odb_pack_name(struct strbuf *buf,
22-
const unsigned char *sha1,
22+
const unsigned char *hash,
2323
const char *ext)
2424
{
2525
strbuf_reset(buf);
2626
strbuf_addf(buf, "%s/pack/pack-%s.%s", get_object_directory(),
27-
sha1_to_hex(sha1), ext);
27+
hash_to_hex(hash), ext);
2828
return buf->buf;
2929
}
3030

0 commit comments

Comments
 (0)