Skip to content

Commit

Permalink
Merge branch 'jc/core-checkstat' into maint
Browse files Browse the repository at this point in the history
* jc/core-checkstat:
  deprecate core.statinfo at Git 2.0 boundary
  • Loading branch information
Junio C Hamano committed Jul 3, 2013
2 parents 0bdae5f + 6f4dd60 commit 8dbc039
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 8dbc039

Please sign in to comment.