summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-02-18 12:24:55 +0100
committerJunio C Hamano <gitster@pobox.com>2014-02-20 14:16:55 -0800
commitafc711b8e1ee89626f0dddf0ef01fb73168d47ca (patch)
tree5d5211df96c4e9d0a45ee12b0a062e2d10c7a170 /git.c
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-afc711b8e1ee89626f0dddf0ef01fb73168d47ca.tar.gz
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>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 7cf2953eff..9efd1a3ec1 100644
--- a/git.c
+++ b/git.c
@@ -78,7 +78,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
if (envchanged)
*envchanged = 1;
} else if (!strcmp(cmd, "--no-replace-objects")) {
- read_replace_refs = 0;
+ check_replace_refs = 0;
setenv(NO_REPLACE_OBJECTS_ENVIRONMENT, "1", 1);
if (envchanged)
*envchanged = 1;