From: Junio C Hamano <gitster@pobox.com>
To: "Jehan Pagès" <jehan.marmottard@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Bug report: --invert-grep and --author seems to be incompatible.
Date: Wed, 13 Jul 2016 10:04:49 -0700 [thread overview]
Message-ID: <xmqqtwft1nbi.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <CAFgjPJ-E0k8KQjdcRki4Qr1tPjwfJVtuFWOKYV-+f6POgb-=wg@mail.gmail.com> ("Jehan Pagès"'s message of "Wed, 13 Jul 2016 18:52:48 +0200")
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.
next prev parent reply other threads:[~2016-07-13 17:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-13 16:52 Bug report: --invert-grep and --author seems to be incompatible Jehan Pagès
2016-07-13 17:04 ` Junio C Hamano [this message]
2016-07-13 17:16 ` Jehan Pagès
2016-07-13 17:37 ` Junio C Hamano
2016-07-13 20:14 ` Jehan Pagès
2016-07-13 20:33 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqtwft1nbi.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jehan.marmottard@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox