summaryrefslogtreecommitdiffstats
path: root/rerere.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-04 19:52:30 +0200
committerJunio C Hamano <gitster@pobox.com>2023-08-04 19:52:30 +0200
commit3365e2675e5ac95e0a44665966e8cfbb9433456e (patch)
tree634776d7ea6a0145f95ae84e1b9f1c651387a37e /rerere.c
parentMerge branch 'la/doc-choose-starting-point' (diff)
parenthex: retire get_sha1_hex() (diff)
downloadgit-3365e2675e5ac95e0a44665966e8cfbb9433456e.tar.xz
git-3365e2675e5ac95e0a44665966e8cfbb9433456e.zip
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 'rerere.c')
-rw-r--r--rerere.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rerere.c b/rerere.c
index 7070f75014..725c1b6a95 100644
--- a/rerere.c
+++ b/rerere.c
@@ -204,7 +204,7 @@ static void read_rr(struct repository *r, struct string_list *rr)
const unsigned hexsz = the_hash_algo->hexsz;
/* There has to be the hash, tab, path and then NUL */
- if (buf.len < hexsz + 2 || get_sha1_hex(buf.buf, hash))
+ if (buf.len < hexsz + 2 || get_hash_hex(buf.buf, hash))
die(_("corrupt MERGE_RR"));
if (buf.buf[hexsz] != '.') {