gitk中正则表达式的格式是什么? [英] What is the format of regular expressions in gitk?
问题描述
我试图在gitk中使用find /添加/删除字符串/正则表达式选项。我尝试过的语法不起作用,而且我找不到描述它接受的正则表达式的语法的文档。我试图匹配 code> Modem_Wakup 和 Modem_UnWakeup
。既没有 Modem_(Un)?唤醒
也没有
Modem_\(Un\)?唤醒
,也没有 Modem_ \(Un \)\?Wakeup
,也没有任何其他明显的工作。我可以单独找到字符串,所以我知道应该有匹配。
那么它使用什么语法?
此功能应基于 pickaxe grep system ,基于 POSIX regexp 。
但这个线程从gitk报告这个bug:
我将问题提交给#git,并且提示它可能是一个镐漏洞,因为如果它们不添加既不是合并提交中的更改,也不显示更改的父母有。
虽然这可能不是您的确切情况,但只是一个说明该功能不是完全可用。
I'm trying to use the find/"adding/removing string"/regular expression option in gitk. The syntaxes I have tried don't work, and I can find no docs that describe the syntax of the regular expressions it accepts.
I'm trying to match both Modem_Wakup
and Modem_UnWakeup
. Neither Modem_(Un)?Wakeup
nor
Modem_\(Un\)?Wakeup
, nor Modem_\(Un\)\?Wakeup
, nor any other obvious ones work. I can find the strings individually, so I know there should be matches.
So what syntax does it use?
This feature should be based on the pickaxe grep system, based on POSIX regexp.
But this thread reports some bug around this from gitk:
I presented the issue to #git, and it was suggested that it is probably a pickaxe bug in that it doesn't display changes in merge commits if they add strings that neither of their parents has.
This may not be your exact case though, simply an illustration that the feature isn't fully available yet.
这篇关于gitk中正则表达式的格式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!