threads / discuss / 14164

git-svn branches creation question

Subject: git-svn branches creation question

## tl;dr

3 messages between Jun 26, 2008 and Jun 26, 2008.

replies: 2people: 2as markdown or json

Pascal Obry· Jun 26, 2008, 15:55 UTC · lore
Is it possible to create and track new branches (or tags) using git-svn?
I know how to track existing branches, but new ones?

Some context. I'm tracking a CVS repository doing update from time to time on the master branch (using simply rsync and git-svn dcommit). Now I want to add a new tag for updates on the master. Currently I'm using svn copy. I'd like to do this directly from Git.

Thanks.
-- 
    Pascal Obry
    --
    gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Avery Pennarun· Jun 26, 2008, 16:08 UTC · re: Pascal Obry · lore

Re: git-svn branches creation question

On 6/26/08, Pascal Obry <pascal@obry.net> wrote:
Show 8 quoted lines
>  Is it possible to create and track new branches (or tags) using git-svn?
>
>  I know how to track existing branches, but new ones?
>
>  Some context. I'm tracking a CVS repository doing update from time to time
> on the master branch (using simply rsync and git-svn dcommit). Now I want to
> add a new tag for updates on the master. Currently I'm using svn copy. I'd
> like to do this directly from Git.

I don't think there's a way to do this. You can create branches in git that *aren't* tracked in svn, of course, if you want to do that.

And creating branches in svn is a single command, even if you don't have an svn checkout:

   svn cp $SVN/trunk $SVN/branches/whatever
So it seems unnecessary to duplicate this feature in git.
Have fun,
Avery
Pascal Obry· Jun 26, 2008, 19:05 UTC · re: Avery Pennarun · lore

Re: git-svn branches creation question

Avery,
> And creating branches in svn is a single command, even if you don't
> have an svn checkout:
> 
>    svn cp $SVN/trunk $SVN/branches/whatever
That's what I'm doing as I said in my message.
> So it seems unnecessary to duplicate this feature in git.

Well it would be quite handy to work on Git directly (eventually off-line) and doing the final "git svn dcommit" to update the subversion repository and creating the branches if necessary.

Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595

← back to recent threads