From: Eli Barzilay <eli@barzilay.org>
To: git@vger.kernel.org
Subject: gitconfig includes
Date: Tue, 29 Nov 2016 14:40:09 -0500 [thread overview]
Message-ID: <CALO-gutW80d6RLdXAtYA2m2GWOchAjNNPy3YCsr31_fCss512g@mail.gmail.com> (raw)
I just noticed something weird: if I have this in my ~/.gitconfig:
[x]
x = global
[include]
path = .gitconfig.more
and .gitconfig.more has
[x]
x = more
then I get:
1. git config x.x => more
2. git config --global x.x => global
3. git config --global --includes x.x => more
The first works as I expected. The second surprised me, since I took
"--global" to mean "the global file and stuff it includes" (that's my
understanding of the description of `include`). The third is fine, but
it made me even more surprised at the second, especially since the man
blurb on --includes says "Defaults to on."...
So this is at least a documentation issue, though I hope that #2 is a
bug and that it *should* return "more"...?
--
((x=>x(x))(x=>x(x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
next reply other threads:[~2016-11-29 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 19:40 Eli Barzilay [this message]
2016-11-29 19:46 ` gitconfig includes Junio C Hamano
2016-11-29 19:53 ` Eli Barzilay
2016-11-29 21:46 ` Jeff King
2016-11-29 21:50 ` Junio C Hamano
2016-11-30 18:54 ` Eli Barzilay
2016-11-30 19:06 ` Jeff King
2016-11-30 19:42 ` Eli Barzilay
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALO-gutW80d6RLdXAtYA2m2GWOchAjNNPy3YCsr31_fCss512g@mail.gmail.com \
--to=eli@barzilay.org \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).