From: Andrew Ardill Date: Sun, 14 Apr 2013 13:03:36 GMT Subject: Re: Why does "git config" output nothing instead of the default value for unset variables? Message-ID: In-Reply-To: On 14 April 2013 22:56, Sebastian Schuberth wrote: >> The closest thing I can see for doing this is git config --list, but >> perhaps there should be a flag to check if a config item is set? > > Yet more command line options? Well, there's probably no way around > that in order to maintain backward compatibility. '--list' already exists; it shows all defined options. With your change in place (and no others) then the only (documented) way to know if something was configured would be by looking at git config --list. Changing the default behaviour is probably too big a breaking change, but a flag to change the behaviour might be nice. Then again, there may be away to do what you want already :-) Regards, Andrew Ardill