gitk: Add support for -G'regex' pickaxe variant
git log -G'regex' is a very useful alternative to the classic pickaxe. Minimal patch to make it usable from gitk. [zj: reword message] [paulus@samba.org: reword droplist item] Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Paul Mackerras <paulus@samba.org>
Martin Langhoff committed
Jun 14, 2012 at 20:34 UTC
c33cb9083ecad2ec7e23b00722096a94e62b17e1
1 file changed
+4
-1
gitk
+4
-1
@@ -2253,7 +2253,8 @@ proc makewindow {} {
2253
set gm [makedroplist .tf.lbar.gdttype gdttype \
2254
[mc "containing:"] \
2255
[mc "touching paths:"] \
2256
- [mc "adding/removing string:"]]
2256
+ [mc "adding/removing string:"] \
2257
+ [mc "changing lines matching:"]]
2258
trace add variable gdttype write gdttype_change
2259
pack .tf.lbar.gdttype -side left -fill y
2260
@@ -4658,6 +4659,8 @@ proc do_file_hl {serial} {
4659
set gdtargs [concat -- $relative_paths]
4660
} elseif {$gdttype eq [mc "adding/removing string:"]} {
4661
set gdtargs [list "-S$highlight_files"]
4662
+ } elseif {$gdttype eq [mc "changing lines matching:"]} {
4663
+ set gdtargs [list "-G$highlight_files"]
4664
} else {
4665
# must be "containing:", i.e. we're searching commit info
4666
return