summaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-02-18 11:24:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-02-20 22:16:55 (GMT)
commitafc711b8e1ee89626f0dddf0ef01fb73168d47ca (patch)
tree5d5211df96c4e9d0a45ee12b0a062e2d10c7a170 /environment.c
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-afc711b8e1ee89626f0dddf0ef01fb73168d47ca.zip
git-afc711b8e1ee89626f0dddf0ef01fb73168d47ca.tar.gz
git-afc711b8e1ee89626f0dddf0ef01fb73168d47ca.tar.bz2
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 'environment.c')
-rw-r--r--environment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/environment.c b/environment.c
index 4a3437d..c3c8606 100644
--- a/environment.c
+++ b/environment.c
@@ -45,7 +45,7 @@ const char *editor_program;
const char *askpass_program;
const char *excludes_file;
enum auto_crlf auto_crlf = AUTO_CRLF_FALSE;
-int read_replace_refs = 1; /* NEEDSWORK: rename to use_replace_refs */
+int check_replace_refs = 1;
enum eol core_eol = EOL_UNSET;
enum safe_crlf safe_crlf = SAFE_CRLF_WARN;
unsigned whitespace_rule_cfg = WS_DEFAULT_RULE;
@@ -147,7 +147,7 @@ static void setup_git_env(void)
if (!git_graft_file)
git_graft_file = git_pathdup("info/grafts");
if (getenv(NO_REPLACE_OBJECTS_ENVIRONMENT))
- read_replace_refs = 0;
+ check_replace_refs = 0;
namespace = expand_namespace(getenv(GIT_NAMESPACE_ENVIRONMENT));
namespace_len = strlen(namespace);
shallow_file = getenv(GIT_SHALLOW_FILE_ENVIRONMENT);