What is the format of regular expressions in gitk?

1.2k views Asked by At

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?

1

There are 1 answers

0
VonC On BEST ANSWER

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.