Add support for context sensitive git configs

Added the `includeIf' section to my global .gitconfig to have the
ability to pull in configs for my private git repos dynamically.

Solution shown by Scott Chacon in his talk
"So you think you know git?" at FOSDEM2024

'https://www.youtube.com/watch?v=aolI_Rz0ZqY'
This commit is contained in:
c47 2024-02-17 21:53:19 +01:00
parent 875cbef0b9
commit b52a84b68b

View file

@ -3,3 +3,6 @@
email = c47@nixre.net
[init]
defaultBranch = main
[includeIf "gitdir:~/gits/priv/"]
path = ~/gits/priv/.gitconfig