Does subgit support multiple 'branches' directories? -
does subgit support multiple 'branches' directories?
for example, if 1 had svn repo went like:
trunk/... branches/<branch>/... releases/<release>/... tags/<tag>/...
but "releases" release branches.
we want both "branches/" , "releases/" in svn become branches in git.
and if new branch created in git, in svn want new directory in "branches/" (i.e. "releases/" deprecated).
so want multiple branch mappings, with 1 of them being "primary" one.
yes, since version 2.0 can specify 'branches' option in subgit config several times. there's restriction: left , right parts of patterns should not intersect or same (otherwise rules become ambiguous):
trunk = trunk:refs/heads/master branches = branches/*:refs/heads/* branches = releases/*:refs/heads/releases/* shelves = shelves/*:refs/shelves/* tags = tags/*:refs/tags/*
you can't map releases/*
, branches/*
refs/heads/*
simultaneously, because makes rules ambiguous (in case subgit doesn't know, whether map refs/heads/branch
branches/branch
or releases/branch
).
Comments
Post a Comment