git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitconfig includes
@ 2016-11-29 19:40 Eli Barzilay
  2016-11-29 19:46 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Barzilay @ 2016-11-29 19:40 UTC (permalink / raw)
  To: git

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!

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

end of thread, other threads:[~2016-11-30 19:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29 19:40 gitconfig includes Eli Barzilay
2016-11-29 19:46 ` 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

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).