通过提交消息搜索Gerrit [英] Searching Gerrit by Commit Message

查看:203
本文介绍了通过提交消息搜索Gerrit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的团队使用一种标准,在所有提交消息之前添加"bz12345:"(其中12345替换为您正在处理的错误),我希望能够搜索所有具有该错误号的提交

Our team uses a standard of prefixing all commit messages with "bz12345:" (where 12345 is replaced by the bug you're working on) and I'd like to be able to search for all commits that have that bug number.

我已阅读 http://gerrit.googlecode. com/svn/documentation/2.1.6/user-search.html 一遍又一遍,还没有找到搜索提交消息标题的方法.是否有人有技巧在提交消息的第一行中搜索任意文本?没有消息:,tr:和错误:有效.

I've read http://gerrit.googlecode.com/svn/documentation/2.1.6/user-search.html over and over and haven't figured out a way to search for commit message titles. Does anybody have a trick for searching the first line of a commit message for arbitrary text? None of message:, tr:, and bug: work.

推荐答案

啊,我知道了.您也必须有一个status:查询.例如,这有效:

Ah, I figured it out. You MUST have a status: query too. For example, this works:

status:merged message:bz12345

这不是不是:

message:bz12345

这可能是因为我们使用的是Gerrit的旧版本(我认为是2.2.1).

This could be because we're on an older version of Gerrit (2.2.1 I think).

这篇关于通过提交消息搜索Gerrit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆