git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why does "git config" output nothing instead of the default value for unset variables?
@ 2013-04-14 12:34 Sebastian Schuberth
  2013-04-14 12:47 ` Andrew Ardill
  2013-04-14 14:30 ` Jakub Narębski
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastian Schuberth @ 2013-04-14 12:34 UTC (permalink / raw)
  To: git

Hi,

I'm just wondering why it was decided to work like this. IMHO it's quite 
inconvenient that git config outputs nothing for any unset (but known) 
variable. Usually when I query a variable I'm not so much interested in 
whether it is at all (explicitly) set to some value or not, but what 
value is currently in use. With that in mind, it would make much more 
sense for git config to print the implicit default value instead of 
nothing if a known variable is unset. For unknown / custom variables it 
still could display nothing, which also gives a nice way to check 
whether a given variable name is known to Git or not.

-- 
Sebastian Schuberth

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-14 19:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-14 12:34 Why does "git config" output nothing instead of the default value for unset variables? Sebastian Schuberth
2013-04-14 12:47 ` Andrew Ardill
2013-04-14 12:56   ` Sebastian Schuberth
2013-04-14 13:03     ` Andrew Ardill
2013-04-14 18:56   ` Jeff King
2013-04-14 19:05     ` Sebastian Schuberth
2013-04-14 14:30 ` Jakub Narębski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).