From: Junio C Hamano <gitster@pobox.com>
To: Robin Rosenberg <robin.rosenberg@dewire.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr
Date: Sun, 07 Jul 2013 15:47:05 -0700 [thread overview]
Message-ID: <7vmwpy2djq.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <382862830.1053811.1373235806136.JavaMail.root@dewire.com> (Robin Rosenberg's message of "Mon, 8 Jul 2013 00:23:26 +0200 (CEST)")
Robin Rosenberg <robin.rosenberg@dewire.com> writes:
> I guess this isn't true either. Anyone has a better way of
> specifiying where the system wide config file is read from,
> or a user-parseable definition of $(prefix) ?
... the system-wide configuration file (typically
/etc/gitconfig), rather than the repository specific
configuration file (.git/config)
should be sufficient.
>
> -- robin
>
> ----- Ursprungligt meddelande -----
>> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
>> ---
>> Documentation/git-config.txt | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/git-config.txt
>> b/Documentation/git-config.txt
>> index 9ae2508..3198d52 100644
>> --- a/Documentation/git-config.txt
>> +++ b/Documentation/git-config.txt
>> @@ -107,7 +107,8 @@ See also <<FILES>>.
>>
>> --system::
>> For writing options: write to system-wide $(prefix)/etc/gitconfig
>> - rather than the repository .git/config.
>> + rather than the repository .git/config. However, $(prefix) is /usr
>> + then /etc/gitconfig is used.
>> +
>> For reading options: read only from system-wide
>> $(prefix)/etc/gitconfig
>> rather than from all available files.
>> @@ -214,7 +215,8 @@ $XDG_CONFIG_HOME/git/config::
>> file was added fairly recently.
>>
>> $(prefix)/etc/gitconfig::
>> - System-wide configuration file.
>> + System-wide configuration file, unless $(prefix) is /usr. In the
>> + latter case /etc/gitconfig is used.
>>
>> If no further options are given, all reading options will read all
>> of these
>> files that are available. If the global or the system-wide
>> configuration
>> --
>> 1.8.3.rc0.19.g7e6a0cc
>>
>>
prev parent reply other threads:[~2013-07-07 22:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-07 22:00 [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr Robin Rosenberg
2013-07-07 22:21 ` John Keeping
2013-07-07 22:32 ` Robin Rosenberg
2013-07-07 22:23 ` Robin Rosenberg
2013-07-07 22:47 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vmwpy2djq.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).