标签:Include -- gerrit 查询 提交 query patch change
使用ssh -p <port> username@gerrit_server gerrit --help可以查询所有支持的命令,命令再用--help可以查询使用方式,比如 ssh -p <port> username@gerrit_server gerrit query --help
gerrit query命令格式:
ssh -p <port> username@gerrit_server gerrit query
ssh -p 29418 username@gerritip gerrit query --help gerrit query QUERY ... [--] [--all-approvals] [--all-reviewers] [--comments] [--commit-message] [--current-patch-set] [--dependencies] [--files] [--format FMT] [--help (-h)] [--patch-sets] [--start (-S) N] [--submit-records] QUERY : Query to execute -- : end of options --all-approvals : Include information about all patch sets and approvals --all-reviewers : Include all reviewers --comments : Include patch set and inline comments --commit-message : Include the full commit message for a change --current-patch-set : Include information about current patch set --dependencies : Include depends-on and needed-by information --files : Include file list on patch sets --format FMT : Output display format --help (-h) : display this help text --patch-sets : Include information about all patch sets --start (-S) N : Number of changes to skip --submit-records : Include submit and label status
除了以上默认参数之外,还有其他参数可以使用。
before:'date' -----查询指定日期之前的修改记录,ex. before:2020-07-31
after:'date' -------查询指定日期之前的修改记录,ex. after:2020-07-01
change:'ID' ---------查询指定change-id的change信息,
conflicts:'ID' ---------查询指定conflicts-id的change信息
owner:'USER', o:'USER' -------查询指定owner的change信息
ownerin:'GROUP' -------查询指定group人员提交的change信息
reviewer:'USER', r:'USER' -------查询指定审核人员的change信息
reviewerin:'GROUP' --------查询指定group人员审核的change信息
commit:'SHA1' -------Changes where 'SHA1' is one of the patch sets of the change.
project:'PROJECT', p:'PROJECT' -------查询指定项目下的change信息
projects:'xx' ----------查询项目名以xx开头的所有项目的chage信息
parentproject:'PROJECT' ----------查询指定项目及其子项目的change信息
branch:'BRANCH' ---------查询指定分支的change信息
topic:'TOPIC' ----查询指定topic的change信息,常与‘branch’,‘project’连用
ref:'xxx' --------查询目标分支与 xxx匹配的change信息
tr:'ID', bug:'ID' ---------查询提交信息中包含‘bug’的change信息
message:'MESSAGE' -------------查询提交信息包含‘MESSAGE’的change信息
comment:
'TEXT' ------
查询comment信息包含指定字符串的 change信息
status:xxx -------
查询指定状态的change
gerrit可以将多个commit amend到一个提交上,使用的是changeid来区分的,所以这个用的比较多,使用举例如下
ssh -p 29418 test@192.168.8.2 gerrit query --comments change:'I26114833d898f6aa621c3a4b28723134312'
原文链接:https://blog.csdn.net/weixin_42309693/article/details/107763879
标签:Include,--,gerrit,查询,提交,query,patch,change 来源: https://www.cnblogs.com/zndxall/p/16374851.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。