使用 Gerrit 审核代码
如果您的 Git 项目使用 Gerrit 进行代码审查,您可以在Qt Creator 中查看您的修改。
要将已提交的修改推送到 Gerrit,请访问Tools >Git >Remote Repository >Push to Gerrit 。
推送草稿到 Gerrit
选择Draft/private 来推送只有你和审阅者可见的修改。如果你使用的是 Gerrit 2.15 或更高版本,可以选择Work-in-progress 来推送不会生成电子邮件通知的修改。
像在 Gerrit 中一样查看变更
要查看与 Gerrit 网页界面中相同的更改信息,请访问Tools >Git >Remote Repository >Gerrit 。
查看变更详情
要查看所选变更的详细信息,请选择Show 。
筛选变更
要将所选变更选取到本地版本库,请选择Cherry Pick 。要在测试后删除更改,请选择Tools >Git >Local Repository >Reset 。在Undo Changes to 对话框中,选择要重置工作目录的状态,然后选择OK 。
签出更改
要在无头状态下签出更改,请选择Checkout 。
刷新更改
要刷新更改列表,请选择Refresh 。
Remote 列出当前版本库中被检测为 Gerrit 服务器的远程。转到首选项> > ,指定通过 SSH 与 Gerrit 服务器的后备连接。Gerrit REST 接口和Version Control Gerrit curl工具用于 HTTP 连接。
如果 Gerrit 没有在 Gerrit URL 前添加HTTPS ,则选择https
。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.