Skip to content

Commit eff714b

Browse files
n8grayEric Wong
authored andcommitted
git-svn: multiple fetch/branches/tags keys are supported
"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 <[email protected]> Signed-off-by: Eric Wong <[email protected]>
1 parent de3a5c6 commit eff714b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/git-svn.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,18 @@ comma-separated list of names within braces. For example:
10321032
tags = tags/{1.0,2.0}/src:refs/remotes/tags/*
10331033
------------------------------------------------------------------------
10341034

1035+
Multiple fetch, branches, and tags keys are supported:
1036+
1037+
------------------------------------------------------------------------
1038+
[svn-remote "messy-repo"]
1039+
url = http://server.org/svn
1040+
fetch = trunk/project-a:refs/remotes/project-a/trunk
1041+
fetch = branches/demos/june-project-a-demo:refs/remotes/project-a/demos/june-demo
1042+
branches = branches/server/*:refs/remotes/project-a/branches/*
1043+
branches = branches/demos/2011/*:refs/remotes/project-a/2011-demos/*
1044+
tags = tags/server/*:refs/remotes/project-a/tags/*
1045+
------------------------------------------------------------------------
1046+
10351047
Note that git-svn keeps track of the highest revision in which a branch
10361048
or tag has appeared. If the subset of branches or tags is changed after
10371049
fetching, then .git/svn/.metadata must be manually edited to remove (or

0 commit comments

Comments
 (0)