Re: Proposal: sharing .git/config
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Feb 19, 2013, 10:24 UTC
- Message-ID
- <CALkWK0m--MbtNzGH9hNPCCLJWhv6rjF9Y=WQ4qnHUFnE61p6kw@mail.gmail.com>
- In-Reply-To
- <87ip5otybp.fsf@pctrast.inf.ethz.ch>
Thomas Rast wrote:
Show 8 quoted lines
> Ramkumar Ramachandra <artagnon@gmail.com> writes: > >> I have this itch where I want to share my remotes config between >> machines. In my fork, I should be able to specify where my upstream >> sources are, so remotes get set up automatically when I clone. > > Note that you need to carefully pick only certain bits of the config, as > otherwise there are big security headaches.
Right. So, we can just start with remotes for the moment? Ideally, there should be a way to specify which configuration options to publish.
Show 5 quoted lines
>> There are also other things in .git/config that would be nice to >> share, like whether to do a --word-diff (why isn't it a configuration >> variable yet?) > > Because that would break pretty much every script that uses git-diff?
diff.c already makes a differentiation between git_diff_ui_config() and git_diff_basic_config(); there are configuration options that should only be applied when the command is called interactively.