Add git-svn branch to allow branch creation in SVN repositories
PATCH 1/1 Add git-svn branch to allow branch creation in SVN repositories
Signed-off-by Florian Ragwitz <[email protected]>
--- Documentation/git-svn.txt | 24 +++++++++++++++++++++++- git-svn.perl | 43 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 65 insertions(+), 2 deletions(-)
Documentation/git-svn.txt +23 -1
@@ -149,6 +149,22 @@ and have no uncommitted changes. is very strongly discouraged. -- +'branch':: + Create a branch in the SVN repository. + +-m;; +--message;; + Allows to specify the commit message. + +-t;; +--tag;; + Create a tag by using the tags_subdir instead of the branches_subdir + specified during git svn init. + +'tag':: + Create a tag in the SVN repository. This is a shorthand for + 'branch -t'. + 'log':: This should make it easy to look up svn log messages when svn users refer to -r/--revision numbers.
@@ -372,7 +388,8 @@ Passed directly to 'git-rebase' when using 'dcommit' if a -n:: --dry-run:: -This can be used with the 'dcommit' and 'rebase' commands. +This can be used with the 'dcommit', 'rebase', 'branch' and 'tag' +commands. For 'dcommit', print out the series of git arguments that would show which diffs would be committed to SVN.
@@ -381,6 +398,9 @@ For 'rebase', display the local branch associated with the upstream svn repository associated with the current branch and the URL of svn repository that will be fetched from. +For 'branch' and 'tag', display the urls that will be used for copying when +creating the branch or tag. + -- ADVANCED OPTIONS
@@ -498,6 +518,8 @@ Tracking and contributing to an entire Subversion-managed project git svn clone http://svn.foo.org/project -T trunk -b branches -t tags # View all branches and tags you have cloned: git branch -r +# Create a new branch in SVN + git svn branch waldo # Reset your master to trunk (or any other branch, replacing 'trunk' # with the appropriate name): git reset --hard remotes/trunk
git-svn.perl +42 -1
61 lines not on this page · raw message
Signature · 1 line
1.5.6.5
Quoted 1 line · Florian Ragwitz
Signed-off-by Florian Ragwitz <[email protected]>
Hi Florian, Sorry I haven't checked the list (nor a good chunk email) in a bit.
The patch looks good, but can you add a test for this functionality? It'll make maintenance easier when other people (myself included) introduce changes that can potentially break something. Thanks.
Quoted 5 lines
--- Documentation/git-svn.txt | 24 +++++++++++++++++++++++- git-svn.perl | 43 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 65 insertions(+), 2 deletions(-)
Signature · 1 line
Eric Wong