rename read_replace_refs to check_replace_refs
The semantics of this flag was changed in commit
e1111cef23
inline lookup_replace_object() calls
but wasn't renamed at the time to minimize code churn. Rename it now,
and add a comment explaining its use.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
5f95c9f850
commit
afc711b8e1
@ -100,7 +100,7 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
|
||||
|
||||
if (starts_with(refname, "refs/replace/")) {
|
||||
unsigned char original_sha1[20];
|
||||
if (!read_replace_refs)
|
||||
if (!check_replace_refs)
|
||||
return 0;
|
||||
if (get_sha1_hex(refname + 13, original_sha1)) {
|
||||
warning("invalid replace ref %s", refname);
|
||||
|
Reference in New Issue
Block a user