git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Schuberth <sschuberth@gmail.com>
To: git@vger.kernel.org
Subject: Why does "git config" output nothing instead of the default value for unset variables?
Date: Sun, 14 Apr 2013 14:34:12 +0200	[thread overview]
Message-ID: <kke7o1$oo$1@ger.gmane.org> (raw)

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

             reply	other threads:[~2013-04-14 12:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-14 12:34 Sebastian Schuberth [this message]
2013-04-14 12:47 ` Why does "git config" output nothing instead of the default value for unset variables? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kke7o1$oo$1@ger.gmane.org' \
    --to=sschuberth@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).