Code

git-config: do not forget seeing "a.b.var" means we are out of "a.var" section.
authorJunio C Hamano <junkio@cox.net>
Sun, 13 May 2007 04:49:33 +0000 (21:49 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 13 May 2007 07:19:58 +0000 (00:19 -0700)
commitae9ee41de86cc98adad1a0c70651c55acc3fb699
treea81358eeeb5548840eb9e532e301258c89d8276d
parentfdc99cbbdcdcf4ee2c336f02b7b2dbcb11696392
git-config: do not forget seeing "a.b.var" means we are out of "a.var" section.

Earlier code tried to be half-careful and knew the logic that
seeing "a.var" after seeing "a.b.var" is a sign of the previous
"a.b." section has ended, but forgot it has to handle the other
way.  Seeing "a.b.var" after seeing "a.var" is a sign that "a."
section has ended, so a new "a.var2" variable should be added
before the location "a.b.var" appears.

Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c