Re: Querying Git for the path to the system config file

2015-05-20 Thread Sebastian Schuberth
On Wed, May 20, 2015 at 11:01 PM, Jeff King wrote: > Of course adding a new option probably won't help you, as it will take > some time before it can be used reliably. I think the hack you came up > with is pretty reasonable in the meantime. Right, so I'll keep using that hack, thanks! -- Seba

Re: Querying Git for the path to the system config file

2015-05-20 Thread Jeff King
On Wed, May 20, 2015 at 10:23:55PM +0200, Sebastian Schuberth wrote: > I was in need to find out the path to the system-wide config file that > Git is using. I need to do this in a platform-independent way (Linux, > Mac OS X, Windows). What I came up with is > > $ GIT_EDITOR=echo git config --sys

Querying Git for the path to the system config file

2015-05-20 Thread Sebastian Schuberth
Hi, I was in need to find out the path to the system-wide config file that Git is using. I need to do this in a platform-independent way (Linux, Mac OS X, Windows). What I came up with is $ GIT_EDITOR=echo git config --system --edit to trick Git into printing the path instead of opening the file