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

Re: What's in git.git

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 18, 2006, 18:43 UTC
Message-ID
<Pine.LNX.4.63.0606182040410.26803@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20060618130837.GN2609@pasky.or.cz>
Hi,
On Sun, 18 Jun 2006, Petr Baudis wrote:
Show 8 quoted lines
> Dear diary, on Sun, Jun 18, 2006 at 02:26:14PM CEST, I got a letter
> where Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...
> > There is one thing I don't like about Pasky's approach: You can change the 
> > config file name to whatever you like, even if no program will read it. 
> > That is why I decided to have a flag instead of an option: to prevent 
> > pilot-errors.
> 
> I'm lost here, admittelly not getting your argument. :-(
Okay, the point I was driving at:
GIT_CONFIG_FILE=~/.gitrc git repo-config blabla.blibli bloblo

_will_ succeed, but to the user it will be non-obvious that the git commands do not pick up on it (because ~/.gitconfig is read instead of ~/.gitrc), whereas

git repo-config --user blabla.blibli bloblo
is pretty obvious, and _has_ the intended effect.
Show 11 quoted lines
> > I cobbled together a patch, which turned out to be rather messy, 
> > introducing "--config-file <file>" to git-repo-config. If people are 
> > interested, I'll clean it up and post it. But then, if you already know 
> > you want to use another config file, you are probably better of just 
> > exporting GIT_CONFIG_FILE and be done with it.
> 
> $GIT_CONFIG_FILE feels nicer since any other git tool can use it as
> well, it's not git-repo-config-specific. But the current intent indeed
> is to simply override the location for git-repo-config, thus for the
> current purposes if we will have --config-file instead of
> GIT_CONFIG_FILE, I will not weep; whatever does the job.
Yes, that is true. Forget about my --config-file patch, please.
> > Note that this issue is orthogonal to the need for a user-specific config 
> > file. I still think that this one should go in.
> 
> I agree as well.

Ciao, Dscho

Previous: Petr BaudisNext: Junio C Hamano
Message 4 of 6 in “What's in git.git”
  1. Junio C HamanoJun 18, 2006
  2. Johannes SchindelinJun 18, 2006
  3. Petr BaudisJun 18, 2006
  4. Johannes SchindelinJun 18, 2006
  5. Junio C HamanoJun 19, 2006
  6. Johannes SchindelinJun 19, 2006

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.