git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Nathan GrayNext: Nathan Gray
Message 2 of 11 in “git-svn: multiple fetch lines”
  1. Nathan GrayDec 16, 2011
  2. Jonathan NiederDec 17, 2011
  3. Nathan GrayDec 19, 2011
  4. 0/2 Re: git-svn: multiple fetch linesJonathan Nieder, Dec 20, 2011
  5. 1/2 git-svn: multiple fetch/branches/tags keys are supportedJonathan Nieder, Dec 20, 2011
  6. Nathan GrayDec 20, 2011
  7. 2/2 git-svn: clarify explanation of --destination argumentJonathan Nieder, Dec 20, 2011
  8. 0/2 git-svn: improve documentation of multiple fetch linesJonathan Nieder, May 13, 2013
  9. 1/2 git-svn: multiple fetch/branches/tags keys are supportedJonathan Nieder, May 13, 2013
  10. 2/2 git-svn: clarify explanation of --destination argumentJonathan Nieder, May 13, 2013
  11. Eric WongMay 15, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.