git-mob icon indicating copy to clipboard operation
git-mob copied to clipboard

Write to configurable file instead of using global, to be dotfiles-friendlier

Open technicalpickles opened this issue 3 months ago • 4 comments

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.

technicalpickles avatar Oct 07 '25 12:10 technicalpickles

[include] path = ~/.gitconfig.local

svk2wjy6w4-oss avatar Dec 08 '25 00:12 svk2wjy6w4-oss

path = ~/.gitconfig.local

svk2wjy6w4-oss avatar Dec 08 '25 00:12 svk2wjy6w4-oss

path = ~/.gitconfig.local

svk2wjy6w4-oss avatar Dec 08 '25 00:12 svk2wjy6w4-oss

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.

rkotze avatar Dec 08 '25 23:12 rkotze