]> git.ipfire.org Git - thirdparty/git.git/commit
config: learn the "onbranch:" includeIf condition
authorDenton Liu <liu.denton@gmail.com>
Wed, 5 Jun 2019 21:21:59 +0000 (17:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jun 2019 21:38:28 +0000 (14:38 -0700)
commit07b2c0eacac91c8db1a371667ed621cff443cf0d
tree0e3e08660abd0ac584d9a9d208c9cc35c6f0aab3
parent74583d89127e21255c12dd3c8a3bf60b497d7d03
config: learn the "onbranch:" includeIf condition

Currently, if a user wishes to have individual settings per branch, they
are required to manually keep track of the settings in their head and
manually set the options on the command-line or change the config at
each branch.

Teach config the "onbranch:" includeIf condition so that it can
conditionally include configuration files if the branch that is checked
out in the current worktree matches the pattern given.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
config.c
t/t1305-config-include.sh