Re: git-svn: multiple fetch lines
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 17, 2011, 10:05 UTC
- Message-ID
- <20111217100521.GA12610@elie.hsd1.il.comcast.net>
- In-Reply-To
- <CA+7g9Jxd3mhbra34f+MiJRt36Lb6gVHi1nOCP8Zo5y-G9jB3qA@mail.gmail.com>
Hi Nathan,
Nathan Gray wrote:
Show 5 quoted lines
> I'm in a conversation with the support fellow of the very nice Tower > git interface for OS X and we need clarification on a point. Does > git-svn explicitly support multiple "fetch =" lines in an svn-remote > section or is it just an accident that it works? My belief is that > such support is intended and his is that it is accidental.
It's true that the documentation is not as clear about this as one might like. Documentation/git-svn.txt leaves it to the reader to infer that this is supported by analogy with "fetch =" lines in native git [remote] sections:
'git svn' stores [svn-remote] configuration information in the repository .git/config file. It is similar the core git [remote] sections except 'fetch' keys do not accept glob arguments; but they are instead handled by the 'branches' and 'tags' keys.
The change description for the patch that introduced that functionality is more helpful.
$ git log -S'Could not find a \"svn-remote.*.fetch\" key' git-svn.perl commit 706587fc Author: Eric Wong <normalperson@yhbt.net> Date: Thu Jan 18 17:50:01 2007 -0800
git-svn: add support for metadata in .git/config Of course, we handle metadata migrations from previous versions and we have added unit tests. The new .git/config remotes resemble non-SVN remotes. Below is an example with comments: [example using multiple 'fetch' keys snipped]
Perhaps such an example would be useful for the git-svn(1) manpage, too. Any ideas for where to add such a note, and how it should be worded? (Of course, if you can phrase such an idea in patch form, that would be the most convenient.)
Hope that helps, Jonathan