9front - general discussion about 9front
 help / color / mirror / Atom feed
From: kemal <kemalinanc8@gmail.com>
To: 9front@9front.org
Subject: [9front] git/conf: check in /sys/lib/git/config as a fallback to user-wide config
Date: Tue, 8 Jun 2021 20:21:20 +0000	[thread overview]
Message-ID: <CABO6shfPzMU6WaVcszdXH7XXRiUseTpqt7xoiL8VY+JKfi8L7A@mail.gmail.com> (raw)

[-- 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++){

                 reply	other threads:[~2021-06-10  1:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABO6shfPzMU6WaVcszdXH7XXRiUseTpqt7xoiL8VY+JKfi8L7A@mail.gmail.com \
    --to=kemalinanc8@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).