From: Alejandro Colomar Date: Tue, 31 Dec 2024 21:03:50 GMT Subject: Re: /etc/git/ Message-ID: In-Reply-To: <016801db57d7$40a7b740$c1f725c0$@nexbridge.com> Hi Randall, On Thu, Dec 26, 2024 at 03:46:29PM -0500, rsbecker@nexbridge.com wrote: > >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 > > 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 > > > --