Does subgit support multiple 'branches' directories?

后端 未结 1 696
盖世英雄少女心
盖世英雄少女心 2021-01-13 18:05

Does subgit support multiple \'branches\' directories?

For example, if one had an SVN repo that went like:

trunk/...
branches//...
rele         


        
相关标签:
1条回答
  • 2021-01-13 18:57

    Yes, since version 2.0 you can specify 'branches' option in SubGit config several times. There's a restriction: left and right parts of the patterns should not intersect or be the same (otherwise the 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/* and branches/* to refs/heads/* simultaneously, because this makes rules ambiguous (in this case SubGit doesn't know, whether to map refs/heads/branch to branches/branch or to releases/branch).

    0 讨论(0)
提交回复
热议问题