Skip to content

Commit c33cb90

Browse files
Martin Langhoffpaulusmack
authored andcommitted
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] [[email protected]: reword droplist item] Signed-off-by: Zbigniew Jędrzejewski-Szmek <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 8f3ff93 commit c33cb90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,8 @@ proc makewindow {} {
22532253
set gm [makedroplist .tf.lbar.gdttype gdttype \
22542254
[mc "containing:"] \
22552255
[mc "touching paths:"] \
2256-
[mc "adding/removing string:"]]
2256+
[mc "adding/removing string:"] \
2257+
[mc "changing lines matching:"]]
22572258
trace add variable gdttype write gdttype_change
22582259
pack .tf.lbar.gdttype -side left -fill y
22592260

@@ -4658,6 +4659,8 @@ proc do_file_hl {serial} {
46584659
set gdtargs [concat -- $relative_paths]
46594660
} elseif {$gdttype eq [mc "adding/removing string:"]} {
46604661
set gdtargs [list "-S$highlight_files"]
4662+
} elseif {$gdttype eq [mc "changing lines matching:"]} {
4663+
set gdtargs [list "-G$highlight_files"]
46614664
} else {
46624665
# must be "containing:", i.e. we're searching commit info
46634666
return

0 commit comments

Comments
 (0)