mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
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>
This commit is contained in:
parent
8f3ff9339f
commit
c33cb9083e
1 changed files with 4 additions and 1 deletions
5
gitk
5
gitk
|
@ -2253,7 +2253,8 @@ proc makewindow {} {
|
||||||
set gm [makedroplist .tf.lbar.gdttype gdttype \
|
set gm [makedroplist .tf.lbar.gdttype gdttype \
|
||||||
[mc "containing:"] \
|
[mc "containing:"] \
|
||||||
[mc "touching paths:"] \
|
[mc "touching paths:"] \
|
||||||
[mc "adding/removing string:"]]
|
[mc "adding/removing string:"] \
|
||||||
|
[mc "changing lines matching:"]]
|
||||||
trace add variable gdttype write gdttype_change
|
trace add variable gdttype write gdttype_change
|
||||||
pack .tf.lbar.gdttype -side left -fill y
|
pack .tf.lbar.gdttype -side left -fill y
|
||||||
|
|
||||||
|
@ -4658,6 +4659,8 @@ proc do_file_hl {serial} {
|
||||||
set gdtargs [concat -- $relative_paths]
|
set gdtargs [concat -- $relative_paths]
|
||||||
} elseif {$gdttype eq [mc "adding/removing string:"]} {
|
} elseif {$gdttype eq [mc "adding/removing string:"]} {
|
||||||
set gdtargs [list "-S$highlight_files"]
|
set gdtargs [list "-S$highlight_files"]
|
||||||
|
} elseif {$gdttype eq [mc "changing lines matching:"]} {
|
||||||
|
set gdtargs [list "-G$highlight_files"]
|
||||||
} else {
|
} else {
|
||||||
# must be "containing:", i.e. we're searching commit info
|
# must be "containing:", i.e. we're searching commit info
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue