{"thread":{"id":"34375","subject":"[PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr","startedAt":"2013-07-07T22:00:02Z","lastAt":"2013-07-07T22:47:05Z","messageCount":5,"participants":["Robin Rosenberg","John Keeping","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"222779","messageId":"1373234402-6856-1-git-send-email-robin.rosenberg@dewire.com","threadId":"34375","inReplyTo":null,"subject":"[PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2013-07-07T22:00:02Z","receivedAt":"2013-07-07T22:00:02Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n---\n Documentation/git-config.txt | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-config.txt b/Documentation/git-config.txt\nindex 9ae2508..3198d52 100644\n--- a/Documentation/git-config.txt\n+++ b/Documentation/git-config.txt\n@@ -107,7 +107,8 @@ See also <<FILES>>.\n \n --system::\n \tFor writing options: write to system-wide $(prefix)/etc/gitconfig\n-\trather than the repository .git/config.\n+\trather than the repository .git/config. However, $(prefix) is /usr\n+\tthen /etc/gitconfig is used.\n +\n For reading options: read only from system-wide $(prefix)/etc/gitconfig\n rather than from all available files.\n@@ -214,7 +215,8 @@ $XDG_CONFIG_HOME/git/config::\n \tfile was added fairly recently.\n \n $(prefix)/etc/gitconfig::\n-\tSystem-wide configuration file.\n+\tSystem-wide configuration file, unless $(prefix) is /usr. In the\n+\tlatter case /etc/gitconfig is used.\n \n If no further options are given, all reading options will read all of these\n files that are available. If the global or the system-wide configuration\n-- \n1.8.3.rc0.19.g7e6a0cc\n"},{"id":"222780","messageId":"20130707222152.GV9161@serenity.lan","threadId":"34375","inReplyTo":"1373234402-6856-1-git-send-email-robin.rosenberg@dewire.com","subject":"Re: [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr","fromName":"John Keeping","fromEmail":"john@keeping.me.uk","sentAt":"2013-07-07T22:21:52Z","receivedAt":"2013-07-07T22:21:52Z","isPatch":true,"sender":{"key":"john@keeping.me.uk","avatar":"https://avatars.githubusercontent.com/u/1702081?v=4"},"body":"On Mon, Jul 08, 2013 at 12:00:02AM +0200, Robin Rosenberg wrote:\n> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n> ---\n>  Documentation/git-config.txt | 6 ++++--\n>  1 file changed, 4 insertions(+), 2 deletions(-)\n> \n> diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt\n> index 9ae2508..3198d52 100644\n> --- a/Documentation/git-config.txt\n> +++ b/Documentation/git-config.txt\n> @@ -107,7 +107,8 @@ See also <<FILES>>.\n>  \n>  --system::\n>  \tFor writing options: write to system-wide $(prefix)/etc/gitconfig\n> -\trather than the repository .git/config.\n> +\trather than the repository .git/config. However, $(prefix) is /usr\n> +\tthen /etc/gitconfig is used.\n\nThat's a build time condition, not something that's decided at runtime\nso I'm not sure that this logic belongs in the user facing\ndocumentation.  The technically correct change would be to use\n\"$(sysconfdir)/gitconfig\" but I think that will just confuse users more.\n\nSince we have a build step for the documentation, I wonder if it's\npossible to replace these with the correct directory at build time.\n\n>  +\n>  For reading options: read only from system-wide $(prefix)/etc/gitconfig\n>  rather than from all available files.\n> @@ -214,7 +215,8 @@ $XDG_CONFIG_HOME/git/config::\n>  \tfile was added fairly recently.\n>  \n>  $(prefix)/etc/gitconfig::\n> -\tSystem-wide configuration file.\n> +\tSystem-wide configuration file, unless $(prefix) is /usr. In the\n> +\tlatter case /etc/gitconfig is used.\n>  \n>  If no further options are given, all reading options will read all of these\n>  files that are available. If the global or the system-wide configuration\n> -- \n> 1.8.3.rc0.19.g7e6a0cc\n"},{"id":"222781","messageId":"382862830.1053811.1373235806136.JavaMail.root@dewire.com","threadId":"34375","inReplyTo":"1373234402-6856-1-git-send-email-robin.rosenberg@dewire.com","subject":"Re: [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2013-07-07T22:23:26Z","receivedAt":"2013-07-07T22:23:26Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"\nI guess this isn't true either. Anyone has a better way of\nspecifiying where the system wide config file is read from,\nor a user-parseable definition of $(prefix) ?\n\n-- robin\n\n----- Ursprungligt meddelande -----\n> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n> ---\n>  Documentation/git-config.txt | 6 ++++--\n>  1 file changed, 4 insertions(+), 2 deletions(-)\n> \n> diff --git a/Documentation/git-config.txt\n> b/Documentation/git-config.txt\n> index 9ae2508..3198d52 100644\n> --- a/Documentation/git-config.txt\n> +++ b/Documentation/git-config.txt\n> @@ -107,7 +107,8 @@ See also <<FILES>>.\n>  \n>  --system::\n>  \tFor writing options: write to system-wide $(prefix)/etc/gitconfig\n> -\trather than the repository .git/config.\n> +\trather than the repository .git/config. However, $(prefix) is /usr\n> +\tthen /etc/gitconfig is used.\n>  +\n>  For reading options: read only from system-wide\n>  $(prefix)/etc/gitconfig\n>  rather than from all available files.\n> @@ -214,7 +215,8 @@ $XDG_CONFIG_HOME/git/config::\n>  \tfile was added fairly recently.\n>  \n>  $(prefix)/etc/gitconfig::\n> -\tSystem-wide configuration file.\n> +\tSystem-wide configuration file, unless $(prefix) is /usr. In the\n> +\tlatter case /etc/gitconfig is used.\n>  \n>  If no further options are given, all reading options will read all\n>  of these\n>  files that are available. If the global or the system-wide\n>  configuration\n> --\n> 1.8.3.rc0.19.g7e6a0cc\n> \n> \n"},{"id":"222782","messageId":"1436467098.1055670.1373236326672.JavaMail.root@dewire.com","threadId":"34375","inReplyTo":"20130707222152.GV9161@serenity.lan","subject":"Re: [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2013-07-07T22:32:06Z","receivedAt":"2013-07-07T22:32:06Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"\n\n----- Ursprungligt meddelande -----\n> On Mon, Jul 08, 2013 at 12:00:02AM +0200, Robin Rosenberg wrote:\n> > Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n> > ---\n> >  Documentation/git-config.txt | 6 ++++--\n> >  1 file changed, 4 insertions(+), 2 deletions(-)\n> > \n> > diff --git a/Documentation/git-config.txt\n> > b/Documentation/git-config.txt\n> > index 9ae2508..3198d52 100644\n> > --- a/Documentation/git-config.txt\n> > +++ b/Documentation/git-config.txt\n> > @@ -107,7 +107,8 @@ See also <<FILES>>.\n> >  \n> >  --system::\n> >  \tFor writing options: write to system-wide $(prefix)/etc/gitconfig\n> > -\trather than the repository .git/config.\n> > +\trather than the repository .git/config. However, $(prefix) is\n> > /usr\n> > +\tthen /etc/gitconfig is used.\n> \n> That's a build time condition, not something that's decided at\n> runtime\n> so I'm not sure that this logic belongs in the user facing\n> documentation.  The technically correct change would be to use\n> \"$(sysconfdir)/gitconfig\" but I think that will just confuse users\n> more.\n> \n> Since we have a build step for the documentation, I wonder if it's\n> possible to replace these with the correct directory at build time.\n\nMight work for documentation. I'd like a run-time variant for my\nparticular problem, but the one I found now, e.g. git rev-parse --show-prefix\"\ndoes not work in the general case. I want to tell JGit where the system\nwide configuration file is, even before we have a git repository.\n\n-- robin\n"},{"id":"222788","messageId":"7vmwpy2djq.fsf@alter.siamese.dyndns.org","threadId":"34375","inReplyTo":"382862830.1053811.1373235806136.JavaMail.root@dewire.com","subject":"Re: [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-07-07T22:47:05Z","receivedAt":"2013-07-07T22:47:05Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Robin Rosenberg <robin.rosenberg@dewire.com> writes:\n\n> I guess this isn't true either. Anyone has a better way of\n> specifiying where the system wide config file is read from,\n> or a user-parseable definition of $(prefix) ?\n\n\t... the system-wide configuration file (typically\n\t/etc/gitconfig), rather than the repository specific\n\tconfiguration file (.git/config)\n\nshould be sufficient.\n\n>\n> -- robin\n>\n> ----- Ursprungligt meddelande -----\n>> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n>> ---\n>>  Documentation/git-config.txt | 6 ++++--\n>>  1 file changed, 4 insertions(+), 2 deletions(-)\n>> \n>> diff --git a/Documentation/git-config.txt\n>> b/Documentation/git-config.txt\n>> index 9ae2508..3198d52 100644\n>> --- a/Documentation/git-config.txt\n>> +++ b/Documentation/git-config.txt\n>> @@ -107,7 +107,8 @@ See also <<FILES>>.\n>>  \n>>  --system::\n>>  \tFor writing options: write to system-wide $(prefix)/etc/gitconfig\n>> -\trather than the repository .git/config.\n>> +\trather than the repository .git/config. However, $(prefix) is /usr\n>> +\tthen /etc/gitconfig is used.\n>>  +\n>>  For reading options: read only from system-wide\n>>  $(prefix)/etc/gitconfig\n>>  rather than from all available files.\n>> @@ -214,7 +215,8 @@ $XDG_CONFIG_HOME/git/config::\n>>  \tfile was added fairly recently.\n>>  \n>>  $(prefix)/etc/gitconfig::\n>> -\tSystem-wide configuration file.\n>> +\tSystem-wide configuration file, unless $(prefix) is /usr. In the\n>> +\tlatter case /etc/gitconfig is used.\n>>  \n>>  If no further options are given, all reading options will read all\n>>  of these\n>>  files that are available. If the global or the system-wide\n>>  configuration\n>> --\n>> 1.8.3.rc0.19.g7e6a0cc\n>> \n>> \n"}]}