{"thread":{"id":"48851","subject":"Git log command doesn't run as expected.","startedAt":"2018-07-10T11:16:30Z","lastAt":"2018-07-10T12:18:37Z","messageCount":2,"participants":["周应天","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"352084","messageId":"F261A512-F38D-45F2-8F4F-A932B9BEA6A1@126.com","threadId":"48851","inReplyTo":null,"subject":"Git log command doesn't run as expected.","fromName":"周应天","fromEmail":"zhoudao200@126.com","sentAt":"2018-07-10T11:16:21Z","receivedAt":"2018-07-10T11:16:30Z","isPatch":false,"sender":{"key":"zhoudao200@126.com","avatar":null},"body":"Hi,\n\tI’m using following command to do some search work:\n\tgit log --all -G 'some regexp' -p — path/to/my/file.\nBut the output could miss some commit. (For example, I grep a little piece of code from a commit diff message(properly handled for regexp), but when I use the command above to search that code, I could not get that commit.)\n\tI wonder that it is because I use it in a wrong way? Then what should I do to correct it.\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tThanks!\n"},{"id":"352102","messageId":"CACBZZX7_iiVu6scdpc4z-rG3wwjC-cwwOOO88vjwKGYqe2FTWQ@mail.gmail.com","threadId":"48851","inReplyTo":"F261A512-F38D-45F2-8F4F-A932B9BEA6A1@126.com","subject":"Re: Git log command doesn't run as expected.","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2018-07-10T12:18:12Z","receivedAt":"2018-07-10T12:18:37Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Tue, Jul 10, 2018 at 1:16 PM, 周应天 <zhoudao200@126.com> wrote:\n> Hi,\n>         I’m using following command to do some search work:\n>         git log --all -G 'some regexp' -p — path/to/my/file.\n> But the output could miss some commit. (For example, I grep a little piece of code from a commit diff message(properly handled for regexp), but when I use the command above to search that code, I could not get that commit.)\n>         I wonder that it is because I use it in a wrong way? Then what should I do to correct it.\n\nHave you tried with --full-history? Does that find what you're looking for?\n"}]}