From: Peter Baumann Date: Wed, 06 Dec 2006 10:23:38 GMT Subject: Re: git pull and merging. Message-ID: <20061206102338.GA28894@xp.machine.xx> In-Reply-To: On Wed, Dec 06, 2006 at 11:14:01AM +0100, Johannes Schindelin wrote: > Hi, > > On Wed, 6 Dec 2006, Peter Baumann wrote: > > > On 2006-12-06, Johannes Schindelin wrote: > > > You can have the same effect as what Junio wrote with the config: > > > > > > $ git repo-config remote.origin.url git://git.kernel.org/pub/scm/git/git.git > > > $ git repo-config remote.origin.fetch \ > > > refs/heads/master:refs/remotes/origin/master > > > $ git repo-config remote.origin.fetch \ > > > refs/heads/next:refs/remotes/origin/next ^$ > > > $ git repo-config remote.origin.fetch \ > > > +refs/heads/pu:refs/remotes/origin/pu ^$ > > > > > > > What's that ^$ for? > > We misuse the "nice" ini format a little bit in git: we allow multiple > values for certain keys, like "remote.origin.fetch". > > The normal mode for repo-config is to replace the value for the given key. > By appending a regular expression, you can limit the replacement to > certain matching _values_. And since "^$" means empty string, it does not > match any, ensuring an append instead of a replace. > > Ciao, > Dscho > Another new thing learned today! Thanks for the info.