我有以下SVN结构:
- Project A
- Folder 1
- Folder a
- Folder b
- Folder 1
- trunk
- tags
...
- Folder n
- trunk
- tags
- Folder 2
- Folder 3
- Project B
在为 svn2git 编写 KDE 匹配规则方面,以下是正确的:
create repository repo
end repository
match Project A/Folder 1/Folder b/([^/]+)/trunk/([^/]+)/
repository repo/Project A/Folder b/([^/]+)
branch master
end match
# Add a prefix to all tag branches so we can fix them later.
match Project A/Folder 1/Folder b/([^/]+)/tags/([^/]+)/
repository repo/Project A/Folder b/([^/]+)
branch tag--\1
end match
# Ignore all other directories.
match /
end match
另外,我是否必须事先在我的 Git 存储库中创建所有文件夹,或者 svn2git 会为我做这件事吗?