Re: /etc/git/
- From
- Alejandro 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/>