* [9front] git/conf: check in /sys/lib/git/config as a fallback to user-wide config
@ 2021-06-08 20:21 kemal
0 siblings, 0 replies; only message in thread
From: kemal @ 2021-06-08 20:21 UTC (permalink / raw)
To: 9front
[-- Attachment #1: Type: text/plain, Size: 52 bytes --]
i don't think this patch needs further explanation.
[-- Attachment #2: patch --]
[-- Type: application/octet-stream, Size: 1128 bytes --]
From 465199fc65151f513fc82d22919cfc67db9e0d98
From: kemal <kemalinanc8@gmail.com>
Date: Tue, 08 Jun 2021 20:13:57 +0000
Subject: [PATCH] git/conf: check in /sys/lib/git/config as a fallback to user-wide config
---
diff 1bce186f6c5be32b218c1c176363cf372d3d5d0c 465199fc65151f513fc82d22919cfc67db9e0d98
--- a/sys/man/1/git Mon Jun 7 19:46:57 2021
+++ b/sys/man/1/git Tue Jun 8 23:13:57 2021
@@ -631,8 +631,12 @@
The configuration file for a repository.
.TP
$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.
+.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
.IR hg (1)
--- a/sys/src/cmd/git/conf.c Mon Jun 7 19:46:57 2021
+++ b/sys/src/cmd/git/conf.c Tue Jun 8 23:13:57 2021
@@ -78,6 +78,7 @@
file[nfile++] = ".git/config";
if((p = getenv("home")) != nil)
file[nfile++] = smprint("%s/lib/git/config", p);
+ file[nfile++] = "/sys/lib/git/config";
}
for(i = 0; i < argc; i++){
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-10 1:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 20:21 [9front] git/conf: check in /sys/lib/git/config as a fallback to user-wide config kemal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).