RE: /etc/git/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On December 26, 2024 3:42 PM, Alejandro Colomar wrote:
>On Thu, Dec 26, 2024 at 12:20:34PM -0500, rsbecker@xxxxxxxxxxxxx wrote:
>> On December 26, 2024 12:11 PM, Alejandro Colomar wrote:
>> >I'd like to have all system-wide configuration under a single directory.
>> >What do you think of adding /etc/git/, and reading a 'config',
>> >'ignore', and 'attributes' files from there?  /etc/gitconfig and /etc/gitattributes
>isn't very clean.
>>
>> Have a look at GIT_CONFIG_SYSTEM documented in
>> https://git-scm.com/docs/git and let us know whether this might work for you.
>
>That's a workaround, which would involve appending some line in /etc/bash.bashrc
>or somewhere similar.  In the end, the git configuration would be spread and
>unorganized, just in a different way.
>In fact, I think I prefer having several /etc/gitsomething files than having a dir and
>then having to clutter the system-wide bashrc.
>
>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.

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








[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux