Re: Possible BUG in 'git config'
- From
- Marco Costalba <mcostalba@gmail.com>
- Date
- Feb 11, 2007, 17:47 UTC
- Message-ID
- <e5bfff550702110947s77e8f264k951ae1c158fcee98@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0702111829230.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On 2/11/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 5 quoted lines
> > Yes, this is probably a bug. But it's obvious that if git-config _without_ > --global would _not_ use ~/.gitconfig, that would rather make ~/.gitconfig > pointless, wouldn't it? >
Yes.
Show 5 quoted lines
> So yes, the description should mention that this is meant for the case of > _setting_ variables, not _querying_ variables. The original poster (Sean) > probaly though -- IMHO correctly -- that querying with --global makes no > sense. >
Yes. It makes non sense but it' allowed. So probably, at least for consistency, could exists a query without silent fallback. Something like
git repo-config --local user.name
Marco