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

[PATCH 1/2] git-svn: multiple fetch/branches/tags keys are supported

From
Jonathan Nieder <jrnieder@gmail.com>
Date
May 13, 2013, 21:31 UTC
Message-ID
<20130513213131.GF3657@google.com>
In-Reply-To
<20130513213055.GE3657@google.com>
From: Nathan Gray <n8gray@n8gray.org>
Date: Mon, 19 Dec 2011 19:23:50 -0600

"git svn" can be configured to use multiple fetch, branches, and tags refspecs by passing multiple --branches or --tags options at init time or editing the configuration file later, which can be handy when working with messy Subversion repositories. Add a note to the configuration section documenting how this works.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
As before.
 Documentation/git-svn.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 58b6d54..6c0988e 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -1032,6 +1032,18 @@ comma-separated list of names within braces. For example:
 	tags = tags/{1.0,2.0}/src:refs/remotes/tags/*
 ------------------------------------------------------------------------
 
+Multiple fetch, branches, and tags keys are supported:
+
+------------------------------------------------------------------------
+[svn-remote "messy-repo"]
+	url = http://server.org/svn
+	fetch = trunk/project-a:refs/remotes/project-a/trunk
+	fetch = branches/demos/june-project-a-demo:refs/remotes/project-a/demos/june-demo
+	branches = branches/server/*:refs/remotes/project-a/branches/*
+	branches = branches/demos/2011/*:refs/remotes/project-a/2011-demos/*
+	tags = tags/server/*:refs/remotes/project-a/tags/*
+------------------------------------------------------------------------
+
 Note that git-svn keeps track of the highest revision in which a branch
 or tag has appeared. If the subset of branches or tags is changed after
 fetching, then .git/svn/.metadata must be manually edited to remove (or
-- 
1.8.3.rc1
Previous: Jonathan NiederNext: Jonathan Nieder
Message 9 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.