git/conf: check in /sys/lib/git/config as a fallback to user-wide config
This commit is contained in:
parent
a859d53145
commit
09b0eb0d1a
2 changed files with 6 additions and 1 deletions
|
@ -631,8 +631,12 @@ $repo/.git/config
|
||||||
The configuration file for a repository.
|
The configuration file for a repository.
|
||||||
.TP
|
.TP
|
||||||
$home/lib/git/config
|
$home/lib/git/config
|
||||||
The global configuration for git.
|
The user-wide configuration for git.
|
||||||
The contents of this file are used as fallbacks for the per-repository config.
|
The contents of this file are used as fallbacks for the per-repository config.
|
||||||
|
.TP
|
||||||
|
/sys/lib/git/config
|
||||||
|
The system-wide configuration for git.
|
||||||
|
The contents of this file are used as fallbacks for the per-user config.
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.IR hg (1)
|
.IR hg (1)
|
||||||
|
|
|
@ -78,6 +78,7 @@ main(int argc, char **argv)
|
||||||
file[nfile++] = ".git/config";
|
file[nfile++] = ".git/config";
|
||||||
if((p = getenv("home")) != nil)
|
if((p = getenv("home")) != nil)
|
||||||
file[nfile++] = smprint("%s/lib/git/config", p);
|
file[nfile++] = smprint("%s/lib/git/config", p);
|
||||||
|
file[nfile++] = "/sys/lib/git/config";
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0; i < argc; i++){
|
for(i = 0; i < argc; i++){
|
||||||
|
|
Loading…
Reference in a new issue