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.
来源:https://stackoverflow.com/questions/5084528/what-is-the-format-of-regular-expressions-in-gitk