git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Jul 7, 2013, 22:23 UTC
Message-ID
<382862830.1053811.1373235806136.JavaMail.root@dewire.com>
In-Reply-To
<1373234402-6856-1-git-send-email-robin.rosenberg@dewire.com>

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) ?

-- robin
----- Ursprungligt meddelande -----
Show 37 quoted lines
> 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
> 
> 
Previous: Robin RosenbergNext: Junio C Hamano
Message 4 of 5 in “Documentation: finding $(prefix)/etc/gitconfig when prefix = /usr”
  1. Documentation: finding $(prefix)/etc/gitconfig when prefix = /usrRobin Rosenberg, Jul 7, 2013
  2. John KeepingJul 7, 2013
  3. Robin RosenbergJul 7, 2013
  4. Robin RosenbergJul 7, 2013
  5. Junio C HamanoJul 7, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.