From: Jonathan Nieder <jrnieder@gmail.com>
To: Nathan Gray <n8gray@n8gray.org>
Cc: git@vger.kernel.org, Eric Wong <normalperson@yhbt.net>
Subject: [PATCH 1/2] git-svn: multiple fetch/branches/tags keys are supported
Date: Mon, 19 Dec 2011 19:23:50 -0600 [thread overview]
Message-ID: <20111220012350.GC20979@elie.hsd1.il.comcast.net> (raw)
In-Reply-To: <20111220012236.GB20979@elie.hsd1.il.comcast.net>
From: Nathan Gray <n8gray@n8gray.org>
"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>
---
Documentation/git-svn.txt | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 34ee7850..66fd60a4 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -923,6 +923,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.7.8
next prev parent reply other threads:[~2011-12-20 1:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 19:51 git-svn: multiple fetch lines Nathan Gray
2011-12-17 10:05 ` Jonathan Nieder
2011-12-19 21:40 ` Nathan Gray
2011-12-20 1:22 ` [RFC/PATCH 0/2] " Jonathan Nieder
2011-12-20 1:23 ` Jonathan Nieder [this message]
2011-12-20 6:42 ` [PATCH 1/2] git-svn: multiple fetch/branches/tags keys are supported Nathan Gray
2011-12-20 1:24 ` [PATCH 2/2] git-svn: clarify explanation of --destination argument Jonathan Nieder
2013-05-13 21:30 ` [PATCH resend 0/2] git-svn: improve documentation of multiple fetch lines Jonathan Nieder
2013-05-13 21:31 ` [PATCH 1/2] git-svn: multiple fetch/branches/tags keys are supported Jonathan Nieder
2013-05-13 21:32 ` [PATCH 2/2] git-svn: clarify explanation of --destination argument Jonathan Nieder
2013-05-15 2:00 ` [PATCH resend 0/2] git-svn: improve documentation of multiple fetch lines Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111220012350.GC20979@elie.hsd1.il.comcast.net \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=n8gray@n8gray.org \
--cc=normalperson@yhbt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).