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

Re: [PATCH] Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME))

From
SCSergio Callegari <scallegari@arces.unibo.it>
Date
Apr 24, 2007, 09:05 UTC
Message-ID
<loom.20070424T105805-25@post.gmane.org>
In-Reply-To
<7v1wia9u02.fsf@assigned-by-dhcp.cox.net>
Show 7 quoted lines
> Junio C Hamano <junkio <at> cox.net> writes:
> 
> > Josh Triplett <josh <at> freedesktop.org> writes:
> >
> >> ETC_GITCONFIG defaults to $(prefix)/etc/gitconfig, so if you just set
> >> prefix=/usr or prefix=/usr/local, you end up with a git that looks in
> >> /usr/etc/gitconfig or /usr/local/etc/gitconfig.  That seems rather
suboptimal.
> >>
> Also what happens to people who use "prefix=/usr/local"?
>  
Could it be better to set ETC_GITCONFIG=/etc/gitconfig /only/ if prefix is /usr?

These would possibly make all people who have git in /usr/local or in /opt/Git or in /home happier...

If I am not wrong, /usr is the only prefix, where, for historical reasons there is no /usr/etc but /etc is used. Having /usr/local/etc does not seem that bad. And /opt/Git/etc appears surely ok.

Sergio
Previous: Junio C HamanoNext: Shawn O. Pearce
Message 10 of 11 in “Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME))”
  1. Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME))Josh Triplett, Apr 24, 2007
  2. Junio C HamanoApr 24, 2007
  3. Josh TriplettApr 24, 2007
  4. Junio C HamanoApr 24, 2007
  5. Josh TriplettApr 24, 2007
  6. Create a sysconfdir variable, and use it for ETC_GITCONFIGJosh Triplett, Apr 24, 2007
  7. Junio C HamanoApr 24, 2007
  8. Junio C HamanoApr 24, 2007
  9. Junio C HamanoApr 24, 2007
  10. Sergio CallegariApr 24, 2007
  11. Shawn O. PearceApr 24, 2007

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.