Re: [PATCH 1/2] git-svn: multiple fetch/branches/tags keys are supported
- From
Nathan Gray <n8gray@n8gray.org>
- Date
- Dec 20, 2011, 06:42 UTC
- Message-ID
- <CA+7g9JyJC77ETez-wrOPRPxdY+0nbwohkR_vP=Tt3bjw-XhHaQ@mail.gmail.com>
- In-Reply-To
- <20111220012350.GC20979@elie.hsd1.il.comcast.net>
Looks good! These doc changes will help a lot.
Thanks, -Nathan
On Mon, Dec 19, 2011 at 5:23 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 39 quoted lines
> 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
>-- HexaLex: A New Angle on Crossword Games for iPhone and iPod Touch http://hexalex.com On The App Store: http://bit.ly/8Mj1CU On Facebook: http://bit.ly/9MIJiV On Twitter: http://twitter.com/hexalexgame http://n8gray.org