git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: /etc/git/

From
ACAlejandro Colomar <alx@kernel.org>
Date
Dec 31, 2024, 21:03 UTC
Message-ID
<mxnhqas7uhg3iq4ftxygur3555dqmnortun4dcwls554qfppg6@fq4zsubda6ay>
In-Reply-To
<016801db57d7$40a7b740$c1f725c0$@nexbridge.com>
Hi Randall,
On Thu, Dec 26, 2024 at 03:46:29PM -0500, rsbecker@nexbridge.com wrote:
Show 6 quoted lines
> >So, I prefer /etc/gitconfig over /etc/git/config + GIT_CONFIG_SYSTEM, but I prefer
> >/etc/git/config over both.
> 
> One possible thing is to have your central git config, wherever you put it, use [include] sections.
> These allow flexibility to pull in relevant configurations depending on the qualification
> of the include. Maybe something else to think about.

I had forgotten about core.attributesFile and core.excludesFile. I now have /etc/gitconfig, and then everything else under /etc/git/, and have

[core]
	attributesFile = /etc/git/attributes
	excludesFile = /etc/git/ignore
This seems quite decent.

Have a lovely new year! Alex

Show 9 quoted lines
> 
> An enhancement like this is high impact and would touch a fair amount of code. It is not
> Just for --system, but --global and --local also. The semantic of specifying and resolving 
> Configurations and attributes (inherited in repositories) are significant.
> 
> --Randall
> 
> 
> 
-- 
<https://www.alejandro-colomar.es/>
Previous: rsbecker@nexbridge.com
Message 5 of 5 in “/etc/git/”
  1. Alejandro ColomarDec 26, 2024
  2. rsbecker@nexbridge.comDec 26, 2024
  3. Alejandro ColomarDec 26, 2024
  4. rsbecker@nexbridge.comDec 26, 2024
  5. Alejandro ColomarDec 31, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.