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:
Michael Haggerty
2014-02-18 12:24:55 +01:00
committed by Junio C Hamano
parent 5f95c9f850
commit afc711b8e1
12 changed files with 24 additions and 14 deletions

View File

@ -86,7 +86,7 @@ static void prepare_replace_object(void)
for_each_replace_ref(register_replace_ref, NULL);
replace_object_prepared = 1;
if (!replace_object_nr)
read_replace_refs = 0;
check_replace_refs = 0;
}
/* We allow "recursive" replacement. Only within reason, though */