致力于 gerrit 方法

Commit to gerrit approach

将提交合并到 gerrit 中的最佳方法是什么? 问题如下:
对于小故事,我最多需要提交两次。到目前为止,我的审查失败了 2 次,现在,我第三次需要提交,我需要最多 2 个补丁集而不是 3 个。

我的做法如下:
如果是第一次,commit + review。就那么简单。
第二,第三,等等我承诺,而不是创建一个审查分支并做一个壁球。
您应该会看到类似这样的内容:

$ git rebase -i HEAD~4

pick 01d1125 Do smth
s 6340aah Do smth 2
s ebfd369 Do smth 3
s 30e0ccb Fixed the review.

# Rebase 60709da..30e0ccb onto 60709da
#
# Commands:
#  p, pick = use commit
#  e, edit = use commit, but stop for amending
#  s, squash = use commit, but meld into previous commit
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#