linux - 如何在gerrit中创建 merge 补丁和 merge 补丁之前的依赖关系?

标签 linux git dependencies patch gerrit

我在 gerrit 上有两个补丁,我想让未 merge 的补丁依赖于 merge 的补丁。

两者都已上传到 gerrit。

  • 我该怎么做?有可能吗?

  • 我可以通过 gerrit 完成吗?不通过git和 cherry-pick 。

假设https://gerrit.wikimedia.org/r/#/c/34106/是未 merge 的文件

merge 后的文件https://gerrit.wikimedia.org/r/#/c/25756/

最佳答案

Gerrit 中的依赖关系只是 Git TreeMap 的一种表示。因此,要使变更 B 依赖于变更 A,B 必须将 A 作为其父级。

在您的情况下,您在两个不同的存储库中进行了两次更改。 Gerrit 当前不支持跨存储库依赖项。这是一个 commonly-requested feature然而,上周末刚刚在 Gerrit 用户大会上讨论过。希望在 Gerrit 的 future 版本中添加对跨存储库依赖项的支持。

关于linux - 如何在gerrit中创建 merge 补丁和 merge 补丁之前的依赖关系?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13459528/

相关文章:

linux - bash 脚本没有在 nohup 中运行,但可以独立运行

linux - 无法访问 2>&1 : How to treat variable content as a redirection not as filename

c - 在 linux 上测试 SIGINT 和 SIGHUP 时有趣的类似故障的行为

备份文件中的 gitlab 包

git - 如果两个 Git 提交具有相同的 SHA-1 哈希会发生什么?

android - 如何将android项目添加到git

Python依赖管理实践

asp.net-web-api - 如何为MVC4/VS2012/Web API注入(inject) Controller

c++ - Conan.io - 是否可以做类似于 "python setup.py develop"的事情?

linux - 找到 : missing argument to -exec with ssh