gitconfig includes
- From
Eli Barzilay <eli@barzilay.org>
- Date
- Nov 29, 2016, 19:40 UTC
- Message-ID
- <CALO-gutW80d6RLdXAtYA2m2GWOchAjNNPy3YCsr31_fCss512g@mail.gmail.com>
I just noticed something weird: if I have this in my ~/.gitconfig:
[x]
x = global
[include]
path = .gitconfig.moreand .gitconfig.more has
[x]
x = morethen 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!