summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Christoph Junghans <ottxor@gentoo.org>2015-01-12 18:33:32 -0700
committerLibravatar Paul Mackerras <paulus@samba.org>2015-03-15 14:32:42 +1100
commitce232c3a14de4653581e3ee2b4c9d638d521da68 (patch)
tree6d6a04003c99dfe9e015a771c2f6c1374b9c8dbe
parentgitk: Synchronize config file writes (diff)
downloadtgif-ce232c3a14de4653581e3ee2b4c9d638d521da68.tar.xz
gitk: Pass --invert-grep option down to "git log"
"git log --grep=<string>" shows only commits with messages that match the given string, but sometimes it is useful to be able to show only commits that do *not* have certain messages (e.g. "show me ones that are not FIXUP commits"). Now the underlying "git log" learned the "--invert-grep" option. The option syntactically behaves similar to "--all-match" that requires that all of the grep strings to match and semantically behaves the opposite---it requires that none of the grep strings to match. Teach "gitk" to allow users to pass it down to underlying "git log" command by adding it to the known_view_options array. Signed-off-by: Christoph Junghans <ottxor@gentoo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitk b/gitk
index 0325ab0ca2..cc5866f103 100755
--- a/gitk
+++ b/gitk
@@ -4066,6 +4066,7 @@ set known_view_options {
{committer t15 . "--committer=*" {mc "Committer:"}}
{loginfo t15 .. "--grep=*" {mc "Commit Message:"}}
{allmatch b .. "--all-match" {mc "Matches all Commit Info criteria"}}
+ {igrep b .. "--invert-grep" {mc "Matches none Commit Info criteria"}}
{changes_l l + {} {mc "Changes to Files:"}}
{pickaxe_s r0 . {} {mc "Fixed String"}}
{pickaxe_t r1 . "--pickaxe-regex" {mc "Regular Expression"}}