threads / discuss / 24619

git config --list --local?

Subject: git config --list --local?

## tl;dr

5 messages between Aug 3, 2010 and Aug 4, 2010.

replies: 4people: 3as markdown or json

Joshua Jensen· Aug 3, 2010, 16:07 UTC · lore
  I would like git config to give me just the settings for the local 
repository (.git/config).  I am likely misreading the documentation, but 
it appears there isn't an option for that.
Would someone mind setting me straight?
Josh
Jakub Narebski· Aug 3, 2010, 16:25 UTC · re: Joshua Jensen · lore

Re: git config --list --local?

Joshua Jensen <jjensen@workspacewhiz.com> writes:
Show 5 quoted lines
>   I would like git config to give me just the settings for the local
> repository (.git/config).  I am likely misreading the documentation,
> but it appears there isn't an option for that.
> 
> Would someone mind setting me straight?
AFAIK you can only fake it with
  $ git config --file .git/config --list
(or something like that).
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Joshua Jensen· Aug 4, 2010, 01:09 UTC · re: Jakub Narebski · lore

Re: git config --list --local?

  ----- Original Message -----
From: Jakub Narebski
Date: 8/3/2010 10:25 AM
> git config --file .git/config --list
This looks like it will work for me.

I've never looked at the config section of the Git code. I'll have to see what it would take to add a --local command line option to do the same thing as above but in a more convenient fashion.

Josh
Sverre Rabbelier· Aug 4, 2010, 01:37 UTC · re: Joshua Jensen · lore

Re: git config --list --local?

Heya,
On Tue, Aug 3, 2010 at 20:09, Joshua Jensen <jjensen@workspacewhiz.com> wrote:
> I've never looked at the config section of the Git code.  I'll have to see
> what it would take to add a --local command line option to do the same thing
> as above but in a more convenient fashion.
http://article.gmane.org/gmane.comp.version-control.git/118673
I can resend if there's interest.
-- 
Cheers,

Sverre Rabbelier
Joshua Jensen· Aug 4, 2010, 01:43 UTC · re: Sverre Rabbelier · lore

Re: git config --list --local?

  ----- Original Message -----
From: Sverre Rabbelier
Date: 8/3/2010 7:37 PM
Show 7 quoted lines
> On Tue, Aug 3, 2010 at 20:09, Joshua Jensen<jjensen@workspacewhiz.com>  wrote:
>> I've never looked at the config section of the Git code.  I'll have to see
>> what it would take to add a --local command line option to do the same thing
>> as above but in a more convenient fashion.
> http://article.gmane.org/gmane.comp.version-control.git/118673
>
> I can resend if there's interest.
Whee!
My opinion doesn't count for anything, but I have interest.  :)
Josh

← back to recent threads