summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-03 15:39:15 -0700
committerJunio C Hamano <gitster@pobox.com>2013-07-03 15:39:15 -0700
commit8dbc03933d0832764fe80576d249d5b9d3b52f20 (patch)
tree04fa84d97b01931ab6af61240e742f248bb7774f
parent0bdae5ff7dd4aca3532d9b0336532c23eb2c44ab (diff)
parent6f4dd60d0713980cf976f569eb83850f9a28fe3c (diff)
downloadgit-8dbc03933d0832764fe80576d249d5b9d3b52f20.tar.gz
Merge branch 'jc/core-checkstat' into maint
* jc/core-checkstat: deprecate core.statinfo at Git 2.0 boundary
-rw-r--r--config.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/config.c b/config.c
index 830ee14b43..7a85ebdbae 100644
--- a/config.c
+++ b/config.c
@@ -566,7 +566,20 @@ static int git_default_core_config(const char *var, const char *value)
trust_ctime = git_config_bool(var, value);
return 0;
}
- if (!strcmp(var, "core.statinfo")) {
+ if (!strcmp(var, "core.statinfo") ||
+ !strcmp(var, "core.checkstat")) {
+ /*
+ * NEEDSWORK: statinfo was a typo in v1.8.2 that has
+ * never been advertised. we will remove it at Git
+ * 2.0 boundary.
+ */
+ if (!strcmp(var, "core.statinfo")) {
+ static int warned;
+ if (!warned++) {
+ warning("'core.statinfo' will be removed in Git 2.0; "
+ "use 'core.checkstat' instead.");
+ }
+ }
if (!strcasecmp(value, "default"))
check_stat = 1;
else if (!strcasecmp(value, "minimal"))