Re: git pull and merging.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 6, 2006, 10:14 UTC
- Message-ID
- <Pine.LNX.4.63.0612061111340.28348@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <slrnend551.arq.Peter.B.Baumann@xp.machine.xx>
Hi,
On Wed, 6 Dec 2006, Peter Baumann wrote:
Show 13 quoted lines
> On 2006-12-06, Johannes Schindelin <Johannes.Schindelin@gmx.de> 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