From: Ramkumar Ramachandra Date: Tue, 19 Feb 2013 10:24:32 GMT Subject: Re: Proposal: sharing .git/config Message-ID: In-Reply-To: <87ip5otybp.fsf@pctrast.inf.ethz.ch> Thomas Rast wrote: > Ramkumar Ramachandra 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. >> 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.