一个真正的、健壮的、git svn externals 解决方案?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11939942/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
A true, robust, git svn externals solution?
提问by newmanne
When you check out a git repository that contains svn externals, it will simply ignore them. What people have done is create many scripts, many of them mentioned in this question How do I keep an svn:external up to date using git-svn?. The problem is that while numerous scripts are floating on the internet, I have yet to find one that was actually robust. By robust, I mean specifically:
当您检出包含 svn externals 的 git 存储库时,它会简单地忽略它们。人们所做的是创建许多脚本,其中许多在这个问题中提到如何使用 git-svn 使 svn:external 保持最新?. 问题是,虽然互联网上漂浮着许多脚本,但我还没有找到真正强大的脚本。稳健,我的意思是:
- It can handle svn externals pegged to a particular revision
- It can handle svn externals that point to a file instead of a directory
- 它可以处理与特定修订版挂钩的 svn 外部文件
- 它可以处理指向文件而不是目录的 svn 外部
Because these are 2 issues with my repository that seem to bring most scripts down. I have no interest in using smartgit.
因为这些是我的存储库的 2 个问题,似乎使大多数脚本失败。我对使用 smartgit 没有兴趣。
Is there such a script? Does anyone have a script that is "almost there" that could be adapted to these 2 things rather quickly?
有这样的剧本吗?有没有人有一个“几乎在那里”的脚本可以很快适应这两件事?
采纳答案by Atilla Filiz
No, there is no perfect solution that just works. You can refer to:
不,没有完美的解决方案。你可以参考:
How do I keep an svn:external up to date using git-svn?
如何使用 git-svn 使 svn:external 保持最新?