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
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 24, 2007, 06:19 UTC
Message-ID
<20070424061911.GQ17480@spearce.org>
In-Reply-To
<7v8xci9uea.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 8 quoted lines
> Josh Triplett <josh@freedesktop.org> writes:
> > Use ifeq in the Makefile to set ETC_GITCONFIG=/etc/gitconfig unless the prefix
> > points to $HOME .
> 
> I personally have four installations of git under $HOME by
> setting prefix to $HOME/git-{maint,master,next,pu}.  I would
> rather not see this to break, as I suspect there are other
> people who depend on this behaviour.
I second that.  :-)
$ cat config.mak
...
current_branch := \
	$(subst refs/heads/,,$(shell git-symbolic-ref HEAD 2>/dev/null))
ifeq ($(current_branch),)
	prefix := $(HOME)/sw/git-unknownbuild
else
	prefix := $(HOME)/sw/git-$(current_branch)
EOF
;-)
-- 
Shawn.
Previous: Sergio Callegari
Message 11 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.