]> git.ipfire.org Git - thirdparty/git.git/commit - git-cvsimport.perl
cvsimport: add support for new style remote layout
authorAndy Whitcroft <apw@shadowen.org>
Wed, 30 May 2007 00:56:41 +0000 (01:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 09:35:49 +0000 (02:35 -0700)
commit8b7f5fc1cac8eb49b4846021706fc06ce074881b
tree7290136d0661ba714cae9ac1bfb3091c2ba363c7
parent6abd0fb396a0c575dafd4e1021d37d178740396c
cvsimport: add support for new style remote layout

cvsimport creates any branches found in the remote CVS repository
in the refs/heads namespace.  This makes sense for a repository
conversion.  When using git as a sane interface to a remote CVS
repository, that repository may well remain as the 'master'
respository.  In this model it makes sense to import the CVS
repository into the refs/remotes namespace.

Add a new option '-r <remote>' to set the remote name for
this import.  When this option is specified branches are named
refs/remotes/<remote>/branch, with HEAD named as master matching
git-clone separate remotes layout.  Without branches are placed
ion refs/heads, with HEAD named origin as before.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl