* "man git-config", "--list" option misleadingly refers to "config file" (singular)
@ 2017-10-03 10:34 rpjday
2017-10-03 13:49 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: rpjday @ 2017-10-03 10:34 UTC (permalink / raw)
To: git
(i suppose that if i'm going to continue whining about stuff, i might
as well clone the git source and start submitting patches.)
in "man git-config":
-l
--list
List all variables set in config file, along with their values.
^^^^
except that, AIUI, "git config --list" will list the combination of all
config values in (if it exists) /etc/gitconfig, then the user's global
settings, and finally the repo's config settings if one happens to be
in a working directory, so technically, it lists the contents of *all* of
the config files (plural), no?
i can submit a patch to clarify that, unless there's some weird definition
of "config file" that implicitly means the combination of all of them.
rday
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "man git-config", "--list" option misleadingly refers to "config file" (singular)
2017-10-03 10:34 "man git-config", "--list" option misleadingly refers to "config file" (singular) rpjday
@ 2017-10-03 13:49 ` Jeff King
2017-10-03 20:54 ` Robert P. J. Day
0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2017-10-03 13:49 UTC (permalink / raw)
To: rpjday; +Cc: git
On Tue, Oct 03, 2017 at 06:34:34AM -0400, rpjday@crashcourse.ca wrote:
> (i suppose that if i'm going to continue whining about stuff, i might
> as well clone the git source and start submitting patches.)
Yes, please. :)
> in "man git-config":
>
> -l
> --list
> List all variables set in config file, along with their values.
> ^^^^
>
> except that, AIUI, "git config --list" will list the combination of all
> config values in (if it exists) /etc/gitconfig, then the user's global
> settings, and finally the repo's config settings if one happens to be
> in a working directory, so technically, it lists the contents of *all* of
> the config files (plural), no?
It does that by default, or it lists the contents of a specific file if
given (either by --file, or with --system, --global, or --local).
So I agree it's not quite accurate, but you probably want some phrasing
that leaves this unsaid (the actual rules are described earlier in the
description section). Maybe just refer to it as the "config source" or
something?
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "man git-config", "--list" option misleadingly refers to "config file" (singular)
2017-10-03 13:49 ` Jeff King
@ 2017-10-03 20:54 ` Robert P. J. Day
2017-10-03 23:12 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2017-10-03 20:54 UTC (permalink / raw)
To: Jeff King; +Cc: git
On Tue, 3 Oct 2017, Jeff King wrote:
> On Tue, Oct 03, 2017 at 06:34:34AM -0400, rpjday@crashcourse.ca wrote:
>
> > (i suppose that if i'm going to continue whining about stuff, i might
> > as well clone the git source and start submitting patches.)
>
> Yes, please. :)
>
> > in "man git-config":
> >
> > -l
> > --list
> > List all variables set in config file, along with their values.
> > ^^^^
> >
> > except that, AIUI, "git config --list" will list the combination
> > of all config values in (if it exists) /etc/gitconfig, then the
> > user's global settings, and finally the repo's config settings if
> > one happens to be in a working directory, so technically, it lists
> > the contents of *all* of the config files (plural), no?
>
> It does that by default, or it lists the contents of a specific file
> if given (either by --file, or with --system, --global, or --local).
>
> So I agree it's not quite accurate, but you probably want some
> phrasing that leaves this unsaid (the actual rules are described
> earlier in the description section). Maybe just refer to it as the
> "config source" or something?
i think the simplest phrasing is, "List all variables set in the
current configuration, along with their values."
sound fair?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "man git-config", "--list" option misleadingly refers to "config file" (singular)
2017-10-03 20:54 ` Robert P. J. Day
@ 2017-10-03 23:12 ` Jeff King
0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2017-10-03 23:12 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: git
On Tue, Oct 03, 2017 at 04:54:32PM -0400, Robert P. J. Day wrote:
> > It does that by default, or it lists the contents of a specific file
> > if given (either by --file, or with --system, --global, or --local).
> >
> > So I agree it's not quite accurate, but you probably want some
> > phrasing that leaves this unsaid (the actual rules are described
> > earlier in the description section). Maybe just refer to it as the
> > "config source" or something?
>
> i think the simplest phrasing is, "List all variables set in the
> current configuration, along with their values."
>
> sound fair?
Yes, sounds reasonable to me.
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-03 23:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03 10:34 "man git-config", "--list" option misleadingly refers to "config file" (singular) rpjday
2017-10-03 13:49 ` Jeff King
2017-10-03 20:54 ` Robert P. J. Day
2017-10-03 23:12 ` Jeff King
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).