是否可以在不修改/压缩提交的情况下将补丁集添加到Gerrit评论中 [英] Is it possible to add patch sets to a Gerrit review without ammending/squashing commits

查看:90
本文介绍了是否可以在不修改/压缩提交的情况下将补丁集添加到Gerrit评论中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的例子。我对Gerrit进行了更改,这会打破CI构建或者审阅者不满意。
然后我用另一个提交修改我的更改。在很多情况下,这是一个小的补丁集,我不想要一个新的gerrit review,而是作为原始评论中的一个新补丁集。



我知道这可以是使用ammend或rebasing和squashin完成。



这是唯一的选择吗?我们有点担心必须使用rebasing和压扁来重写历史。



谢谢,



Giao。

解决方案> git commit --amend 我们大部分时间都是这样做的。


A simple example. I commit a change to Gerrit, which breaks the CI build or a reviewer is not satisfied. I then fix my change with another commit. In many cases this is small patch set for which I do not want a new gerrit review but rather as a new patch set in the original review.

I know this can be achived using ammend or rebasing and squashin.

Is this the only options? We are a little bit concerned about having to rewrite history using rebasing and squashing.

Thanks,

Giao.

解决方案

git commit --amend works pretty well; that how we do it most of the time.

这篇关于是否可以在不修改/压缩提交的情况下将补丁集添加到Gerrit评论中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆