zaquestion/lab

hierarchical config places

strowi opened this issue · 0 comments

Hi,

i saw it is already possible to use worktree/user specific places. But what about real hierachical search order?
E.g. for .gitconfig it is possible to use sth. like to have the config used recursively (instead of adding it to every .git/lab/lab.toml

[includeIf "gitdir:~/src/private/**"]
    path = ~/src/private/.gitconfig

[includeIf "gitdir:~/src/ck/**"]
    path = ~/src/ck/.gitconfig

This would reduce the cost from adding the config to every repository to once per sub-directory if you have e.g. a private and company folder.

kind regards,
strowi