{"thread":{"id":"62695","subject":"/etc/git/","startedAt":"2024-12-26T17:10:51Z","lastAt":"2024-12-31T21:03:51Z","messageCount":5,"participants":["Alejandro Colomar","rsbecker@nexbridge.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"509571","messageId":"lwjb3p4mqv6h3mewyh4b5gm4gs6omfapmbd34roexs7yujnswv@xwn6oriqdt62","threadId":"62695","inReplyTo":null,"subject":"/etc/git/","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2024-12-26T17:10:48Z","receivedAt":"2024-12-26T17:10:51Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"Hi!\n\nI'd like to have all system-wide configuration under a single directory.\nWhat do you think of adding /etc/git/, and reading a 'config', 'ignore',\nand 'attributes' files from there?  /etc/gitconfig and\n/etc/gitattributes isn't very clean.\n\nHave a lovely night!\nAlex\n\n-- \n<https://www.alejandro-colomar.es/>\n"},{"id":"509572","messageId":"015f01db57ba$7c9e14f0$75da3ed0$@nexbridge.com","threadId":"62695","inReplyTo":"lwjb3p4mqv6h3mewyh4b5gm4gs6omfapmbd34roexs7yujnswv@xwn6oriqdt62","subject":"RE: /etc/git/","fromName":"","fromEmail":"rsbecker@nexbridge.com","sentAt":"2024-12-26T17:20:34Z","receivedAt":"2024-12-26T17:20:55Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On December 26, 2024 12:11 PM, Alejandro Colomar wrote:\n>I'd like to have all system-wide configuration under a single directory.\n>What do you think of adding /etc/git/, and reading a 'config', 'ignore', and\n>'attributes' files from there?  /etc/gitconfig and /etc/gitattributes isn't very clean.\n\nHave a look at GIT_CONFIG_SYSTEM documented in https://git-scm.com/docs/git\nand let us know whether this might work for you.\n\n--Randall\n\n"},{"id":"509574","messageId":"brgripo67yq43wzti5tpsxqezwfrurt2qpaiugnxuuksjvmmab@eeugej54ncxm","threadId":"62695","inReplyTo":"015f01db57ba$7c9e14f0$75da3ed0$@nexbridge.com","subject":"Re: /etc/git/","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2024-12-26T20:41:55Z","receivedAt":"2024-12-26T20:41:58Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"Hi Randall,\n\nOn Thu, Dec 26, 2024 at 12:20:34PM -0500, rsbecker@nexbridge.com wrote:\n> On December 26, 2024 12:11 PM, Alejandro Colomar wrote:\n> >I'd like to have all system-wide configuration under a single directory.\n> >What do you think of adding /etc/git/, and reading a 'config', 'ignore', and\n> >'attributes' files from there?  /etc/gitconfig and /etc/gitattributes isn't very clean.\n> \n> Have a look at GIT_CONFIG_SYSTEM documented in https://git-scm.com/docs/git\n> and let us know whether this might work for you.\n\nThat's a workaround, which would involve appending some line in\n/etc/bash.bashrc or somewhere similar.  In the end, the git\nconfiguration would be spread and unorganized, just in a different way.\nIn fact, I think I prefer having several /etc/gitsomething files than\nhaving a dir and then having to clutter the system-wide bashrc.\n\nSo, I prefer /etc/gitconfig over /etc/git/config + GIT_CONFIG_SYSTEM,\nbut I prefer /etc/git/config over both.\n\nHave a lovely night!\nAlex\n\n> \n> --Randall\n> \n\n-- \n<https://www.alejandro-colomar.es/>\n"},{"id":"509575","messageId":"016801db57d7$40a7b740$c1f725c0$@nexbridge.com","threadId":"62695","inReplyTo":"brgripo67yq43wzti5tpsxqezwfrurt2qpaiugnxuuksjvmmab@eeugej54ncxm","subject":"RE: /etc/git/","fromName":"","fromEmail":"rsbecker@nexbridge.com","sentAt":"2024-12-26T20:46:29Z","receivedAt":"2024-12-26T20:46:39Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On December 26, 2024 3:42 PM, Alejandro Colomar wrote:\n>On Thu, Dec 26, 2024 at 12:20:34PM -0500, rsbecker@nexbridge.com wrote:\n>> On December 26, 2024 12:11 PM, Alejandro Colomar wrote:\n>> >I'd like to have all system-wide configuration under a single directory.\n>> >What do you think of adding /etc/git/, and reading a 'config',\n>> >'ignore', and 'attributes' files from there?  /etc/gitconfig and /etc/gitattributes\n>isn't very clean.\n>>\n>> Have a look at GIT_CONFIG_SYSTEM documented in\n>> https://git-scm.com/docs/git and let us know whether this might work for you.\n>\n>That's a workaround, which would involve appending some line in /etc/bash.bashrc\n>or somewhere similar.  In the end, the git configuration would be spread and\n>unorganized, just in a different way.\n>In fact, I think I prefer having several /etc/gitsomething files than having a dir and\n>then having to clutter the system-wide bashrc.\n>\n>So, I prefer /etc/gitconfig over /etc/git/config + GIT_CONFIG_SYSTEM, but I prefer\n>/etc/git/config over both.\n\nOne possible thing is to have your central git config, wherever you put it, use [include] sections.\nThese allow flexibility to pull in relevant configurations depending on the qualification\nof the include. Maybe something else to think about.\n\nAn enhancement like this is high impact and would touch a fair amount of code. It is not\nJust for --system, but --global and --local also. The semantic of specifying and resolving \nConfigurations and attributes (inherited in repositories) are significant.\n\n--Randall\n\n\n\n"},{"id":"509765","messageId":"mxnhqas7uhg3iq4ftxygur3555dqmnortun4dcwls554qfppg6@fq4zsubda6ay","threadId":"62695","inReplyTo":"016801db57d7$40a7b740$c1f725c0$@nexbridge.com","subject":"Re: /etc/git/","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2024-12-31T21:03:50Z","receivedAt":"2024-12-31T21:03:51Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"Hi Randall,\n\nOn Thu, Dec 26, 2024 at 03:46:29PM -0500, rsbecker@nexbridge.com wrote:\n> >So, I prefer /etc/gitconfig over /etc/git/config + GIT_CONFIG_SYSTEM, but I prefer\n> >/etc/git/config over both.\n> \n> One possible thing is to have your central git config, wherever you put it, use [include] sections.\n> These allow flexibility to pull in relevant configurations depending on the qualification\n> of the include. Maybe something else to think about.\n\nI had forgotten about core.attributesFile and core.excludesFile.  I now\nhave /etc/gitconfig, and then everything else under /etc/git/, and have\n\n[core]\n\tattributesFile = /etc/git/attributes\n\texcludesFile = /etc/git/ignore\n\nThis seems quite decent.\n\n\nHave a lovely new year!\nAlex\n\n> \n> An enhancement like this is high impact and would touch a fair amount of code. It is not\n> Just for --system, but --global and --local also. The semantic of specifying and resolving \n> Configurations and attributes (inherited in repositories) are significant.\n> \n> --Randall\n> \n> \n> \n\n-- \n<https://www.alejandro-colomar.es/>\n"}]}