Skip to content

Commit ce232c3

Browse files
junghanspaulusmack
authored andcommitted
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>
1 parent eaf7e83 commit ce232c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gitk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,6 +4066,7 @@ set known_view_options {
40664066
{committer t15 . "--committer=*" {mc "Committer:"}}
40674067
{loginfo t15 .. "--grep=*" {mc "Commit Message:"}}
40684068
{allmatch b .. "--all-match" {mc "Matches all Commit Info criteria"}}
4069+
{igrep b .. "--invert-grep" {mc "Matches none Commit Info criteria"}}
40694070
{changes_l l + {} {mc "Changes to Files:"}}
40704071
{pickaxe_s r0 . {} {mc "Fixed String"}}
40714072
{pickaxe_t r1 . "--pickaxe-regex" {mc "Regular Expression"}}

0 commit comments

Comments
 (0)