一个真正的、健壮的、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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 07:19:57  来源:igfitidea点击:

A true, robust, git svn externals solution?

gitgit-svnsvn-externals

提问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 保持最新?. 问题是,虽然互联网上漂浮着许多脚本,但我还没有找到真正强大的脚本。稳健,我的意思是:

  1. It can handle svn externals pegged to a particular revision
  2. It can handle svn externals that point to a file instead of a directory
  1. 它可以处理与特定修订版挂钩的 svn 外部文件
  2. 它可以处理指向文件而不是目录的 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