[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Git bug: Filter ignored when "--invert-grep" option is used.
From:       Dotan Cohen <dotancohen () gmail ! com>
Date:       2021-12-15 9:50:44
Message-ID: CAKDXFkMvXJm5+5Qxz2N5NH-s+nptayG_7+yTSPxynZxkOcaVKw () mail ! gmail ! com
[Download RAW message or body]

What did you do before the bug happened?
$ git log -8 --author=Shachar --grep=Revert --invert-grep

What did you expect to happen?
I expected to see the last 8 commits from Shachar that did not have
the string "Revert" in the commit message.

What happened instead?
The list of commits included commits by authors other than Shachar.

What's different between what you expected and what actually happened?
The "--author" filter seems to be ignored when the "--invert-grep"
option is used.
I also tried to change the order of the options, but the results
remained the same.

[System Info]
git version:
git version 2.34.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10
10:20:10 UTC 2021 x86_64
compiler info: gnuc: 9.3
libc info: glibc: 2.31
$SHELL (typically, interactive shell): /bin/bash


[Enabled Hooks]
pre-commit
pre-push
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic