# how to make "git log" to grep diff

2 messages from 2020-06-30 to 2020-06-30. Participants: wuzhouhui.
Thread: https://gitlist.dev/t/53773

## wuzhouhui, 2020-06-30 01:27

Subject: how to make "git log" to grep diff
Message-ID: <b15193cd-339a-1097-df9f-a3b587db3be3@mails.ucas.ac.cn>
URL: https://gitlist.dev/e/b15193cd-339a-1097-df9f-a3b587db3be3%40mails.ucas.ac.cn

```
Hi

The option --grep of git log is to grep commit log message, but I want to

grep diff, is any option support it?

Thanks


```

## wuzhouhui, 2020-06-30 01:32

Subject: Re: how to make "git log" to grep diff
Message-ID: <e052a0dc-26b0-391d-a29d-e9ab6f55d7f7@mails.ucas.ac.cn>
URL: https://gitlist.dev/e/e052a0dc-26b0-391d-a29d-e9ab6f55d7f7%40mails.ucas.ac.cn
In-Reply-To: <b15193cd-339a-1097-df9f-a3b587db3be3@mails.ucas.ac.cn>

```
On 6/30/20 9:27 AM, wuzhouhui wrote:
> Hi
>
> The option --grep of git log is to grep commit log message, but I want to
>
> grep diff, is any option support it?
>
I have found option -G can do this, never mind.
> Thanks
>


```
