Gerrit: combine multiple commits into one “change”

前端 未结 3 447
温柔的废话
温柔的废话 2021-01-30 13:30

As a git best practice, one should commit frequently, but to review the code you may need to review a patch consisting of multiple commits at once. Is there a way multiple comm

3条回答
  •  清酒与你
    2021-01-30 13:30

    No, Gerrit does not currently support batching commits into one review. However, there are a couple other options.

    At $DAYJOB, my team uses feature branches for larger changes. The smaller commits are reviewed/merged to the feature branch individually, but the feature branch is only merged in once everything is in a good place and all developers are happy.

    Gerrit also supports topic branches - which are a convenient way to group related commits. They are discussed briefly in the documentation. These commits must still be reviewed/merged individually, but they can be quickly grouped together in the web UI.

提交回复
热议问题