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

Re: [PATCH] Only use GIT_CONFIG in "git config", not other programs

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Jul 15, 2008, 21:46 UTC
Message-ID
<alpine.LNX.1.00.0807151733430.19665@iabervon.org>
In-Reply-To
<bd6139dc0807151056q61a9379l84761fe021d4541c@mail.gmail.com>
On Tue, 15 Jul 2008, Sverre Rabbelier wrote:
Show 16 quoted lines
> On Mon, Jun 30, 2008 at 9:37 AM, Daniel Barkalow <barkalow@iabervon.org> wrote:
> > @@ -611,31 +613,28 @@ int git_config(config_fn_t fn, void *data)
> >  {
> >        int ret = 0;
> >        char *repo_config = NULL;
> > -       const char *home = NULL, *filename;
> > +       const char *home = NULL;
> >
> >        /* $GIT_CONFIG makes git read _only_ the given config file,
> >         * $GIT_CONFIG_LOCAL will make it process it in addition to the
> >         * global config file, the same way it would the per-repository
> >         * config file otherwise. */
> 
> I noticed today while looking at config.c (because of the 'git config
> oddity' thread) that this reference to GIT_CONFIG_LOCAL was not
> removed?

Actually, it looks like that whole comment is obsolete; only builtin-config.c cares about any of this stuff.

Show 5 quoted lines
> On latest next:
> $ grep GIT_CONFIG_LOCAL *
> config.c:	 * $GIT_CONFIG_LOCAL will make it process it in addition to the
> git-svn:		my $file = $ENV{GIT_CONFIG} || $ENV{GIT_CONFIG_LOCAL} ||
> git-svn.perl:		my $file = $ENV{GIT_CONFIG} || $ENV{GIT_CONFIG_LOCAL} ||
I'm not sure if git-svn is doing the right thing here, either.
	-Daniel
*This .sig left intentionally blank*
Previous: Sverre Rabbelier
Message 5 of 5 in “Only use GIT_CONFIG in "git config", not other programs”
  1. Only use GIT_CONFIG in "git config", not other programsDaniel Barkalow, Jun 30, 2008
  2. Junio C HamanoJun 30, 2008
  3. Daniel BarkalowJun 30, 2008
  4. Sverre RabbelierJul 15, 2008
  5. Daniel BarkalowJul 15, 2008

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.