zaquestion / lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
https://zaquestion.github.io/lab
Creative Commons Zero v1.0 Universal
1.11k stars 102 forks source link

hierarchical config places #820

Open strowi opened 2 years ago

strowi commented 2 years ago

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