{"thread":{"id":"57231","subject":"bug: git log --follow does not honour --author option","startedAt":"2022-01-13T12:07:32Z","lastAt":"2022-01-13T12:07:32Z","messageCount":1,"participants":["Jaap Eldering"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"446119","messageId":"d4bf0749-82f4-2d76-c36c-334a8a19abdf@jaapeldering.nl","threadId":"57231","inReplyTo":null,"subject":"bug: git log --follow does not honour --author option","fromName":"Jaap Eldering","fromEmail":"jaap@jaapeldering.nl","sentAt":"2022-01-13T11:58:27Z","receivedAt":"2022-01-13T12:07:32Z","isPatch":false,"sender":{"key":"jaap@jaapeldering.nl","avatar":null},"body":"Hi,\n\nI ran into this issue, see the output from git bugreport below. I first found it in version 2.30.2 from Debian Bullseye, but was able reproduce it also with a build from the next branch.\n\nBest,\nJaap\n\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\nA minimal working example reproducing the bug:\n\ngit init test-log-follow-author\ncd test-log-follow-author\necho \"Some contents.\" > foo\ngit add foo\ngit commit -m \"Initial commit.\" --author \"Myself <myself@example.com>\"\ngit mv foo bar\ngit commit -m \"Let's rename this.\" --author \"Random other person <random@example.com>\"\ngit log --follow --author myself -- bar\n\n\nWhat did you expect to happen? (Expected behavior)\n\nI expected the last git log command to show the initial commit made\nby myself.\n\n\nWhat happened instead? (Actual behavior)\n\nNo commits show up.\n\n\nWhat's different between what you expected and what actually happened?\n\nThe --author option doesn't seem to find commits across renames when\nusing --follow, except for when searching the author who renamed the\nfile: these are found, and all commits also show up as expected when\nno --author argument is used.\n\n\nAnything else you want to add:\n\n[System Info]\ngit version:\ngit version 2.35.0.rc0.227.g00780c9af4\ncpu: x86_64\nbuilt from commit: 00780c9af44409a68481c82f63a97bd18bb2593e\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64\ncompiler info: gnuc: 10.2\nlibc info: glibc: 2.31\n$SHELL (typically, interactive shell): /bin/bash\n\n\n[Enabled Hooks]\n"}]}