Re: Bug report: --invert-grep and --author seems to be incompatible.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 13, 2016, 17:04 UTC
- Message-ID
- <xmqqtwft1nbi.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAFgjPJ-E0k8KQjdcRki4Qr1tPjwfJVtuFWOKYV-+f6POgb-=wg@mail.gmail.com>
Jehan Pagès <jehan.marmottard@gmail.com> writes:
>> git log --author=someone --invert-grep --grep=something > > But it does not work. Actually it looks like it just returns > everything (as though I had done a simple `git log`).
Do you see a commit that is by "someone" and has "something" in it in the output from the command?
I think --author=someone greps the "author " field in the commit object looking for the hit with "someone", and your request asks to show commits that either do not have "something" or was not written by "someone", I would guess.