sourceallies / commit-collective

0 stars 1 forks source link

Support enabling based on folder paths prefixes #26

Open diginc opened 3 years ago

diginc commented 3 years ago

a 3rd style of matching based on just being in a parent directory would be nice. I use this style for my gpgsign, keys, emails, and author settings being different depending on path:

my global $HOME/.gitconfig

# Global stuff above, targeted changes split out in separate files
[includeIf "gitdir:~/github.com/"]
    path = ~/.gitconfig-diginc
[includeIf "gitdir:~/sourceallies/"]
    path = ~/.gitconfig-sai
[includeIf "gitdir:~/github.myexampleclient.com/"]
    path = ~/.gitconfig-myexampleclient