Write to configurable file instead of using global, to be dotfiles-friendlier
Summary
I'd like to be able to tell git-mob to use git config --file path/to/file instead of git config --global for gitmob.* settings.
Motivation
I store my ~/.gitconfig in dotfiles. git-mob using git config --global means that machine-specific settings get added to this file, and I have to be a lot more careful when committing changes to not include mob settings.
To account for per-system differences, I use:
[include]
path = ~/.gitconfig.local
That way, I can write whatever is system-dependent to ~/.gitconfig.local and not worry about it affecting more than it should.
Describe alternatives you've considered
Status Quo: continue manually excluding git mob related ~/.gitconfig changes.
Additional context
I'm coming from git-duet, which didn't seem to make changes to ~/.gitconfig.
[include] path = ~/.gitconfig.local
path = ~/.gitconfig.local
path = ~/.gitconfig.local
Hi @technicalpickles
Sorry for the slow reply and thanks for posting this issue.
I think this could be a useful feature and worth adding. For me, the key thing is ensuring the tracking of added co-authors in stored in one place so it can sync up across multiple git repos and managing config changes does not get messy.
Thanks.