Re: How can I search git log with ceratin keyword but without the other keyword?
- From
- 孙世龙 sunshilong <sunshilong369@gmail.com>
- Date
- Jul 17, 2020, 10:27 UTC
- Message-ID
- <CAAvDm6akPndEmFz3v45zevPkmgmWGMi_kZFyCq_=K3hKOcKuHA@mail.gmail.com>
- In-Reply-To
- <xmqqd04ufutq.fsf@gitster.c.googlers.com>
Thank you for your reply.
>Perhaps the definition of "distant future" is about 8 years ;-) >https://lore.kernel.org/git/7vr4q45y65.fsf@alter.siamese.dyndns.org/
I read this post and did the test like this: git log --grep=12 --grep-and --grep-not \--grep-\(--grep=comments\) fatal: unrecognized argument: --grep-and
I found it doesn't work for git version 2.7.4.
After reading it carefully again and again, I finally understood what you mean by "distant future" is about 8 years. :) (:
Thank you for your attention to this matter.
On Fri, Jul 17, 2020 at 3:45 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> > Jeff King <peff@peff.net> writes: > > > But none of that is exposed via the command-line of "git log". I think > > it would be possible to do so, but I'm not sure how tricky it would be > > (certainly one complication is that "--not" already means something else > > there, but presumably we could have "--grep-and", "--grep-not", etc). > > Perhaps the definition of "distant future" is about 8 years ;-) > > https://lore.kernel.org/git/7vr4q45y65.fsf@alter.siamese.dyndns.org/ >