gerrit query命令格式:
ssh -p <port> username@gerrit_server gerrit query
查看所有参数类型
ssh -p <port> username@gerrit_server gerrit query --help
gerrit query QUERY ... [--] [--all-approvals] [--all-reviewers] [--comments] [--commit-message] [--current-patch-set] [--dependencies] [--files] [--format [TEXT | JSON]] [--help (-h)] [--patch-sets] [--start (-S) N] [--submit-records] [--trace] [--trace-id VAL]
QUERY : Query to execute
-- : end of options (default: false)
--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