From: "Jakub Narębski" <jnareb@gmail.com>
To: Sebastian Schuberth <sschuberth@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Why does "git config" output nothing instead of the default value for unset variables?
Date: Sun, 14 Apr 2013 16:30:00 +0200 [thread overview]
Message-ID: <516ABD68.5090501@gmail.com> (raw)
In-Reply-To: <kke7o1$oo$1@ger.gmane.org>
Sebastian Schuberth wrote:
> 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.
I think git-config was meant to be git agnostic (and therefore usable
outside git, and for files other that git config files).
It would be better to add required functionality to git-var, IMHO.
--
Jakub Narębski
prev parent reply other threads:[~2013-04-14 14:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=516ABD68.5090501@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=sschuberth@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.