{"thread":{"id":"57846","subject":"Re: Missing commits with git log --follow","startedAt":"2022-05-05T06:37:04Z","lastAt":"2022-05-05T06:37:04Z","messageCount":1,"participants":["Rihards Teteris"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"454846","messageId":"GV1PR01MB8562EB91A12876611CDD8371EDC29@GV1PR01MB8562.eurprd01.prod.exchangelabs.com","threadId":"57846","inReplyTo":"GV1PR01MB85627EC349E8893EB3B5F47CEDC29@GV1PR01MB8562.eurprd01.prod.exchangelabs.com","subject":"Re: Missing commits with git log --follow","fromName":"Rihards Teteris","fromEmail":"rihards.teteris@outlook.com","sentAt":"2022-05-05T06:36:45Z","receivedAt":"2022-05-05T06:37:04Z","isPatch":false,"sender":{"key":"rihards.teteris@outlook.com","avatar":null},"body":"Hello Git,\n\nI think I have found quite interesting bug.\nFor some files git log --follow is missing some commits, even though I would expect it to find more commits.\nI found a case for that in the git repository itself too:\n\n# git --version\ngit version 2.36.0\n# time git log --format=%H contrib/git-resurrect.sh\ne37eae0c1e13cb418947383f7c803d9463bfa3d7\nd047154e7b2ab9c7191b0d72484012085051d521\n3c833cae446364872b759c7622af2760a2f81a11\nfba275dc93319ffa31ecebe015f8cda671fcf0e5\n51ba8ce372ad9fcab04a013252b819625c44770a\n50ab6558bf688e15048e189bdaf9174b217e1748\ne1ff064e1bffedb917c491681b7bfd4d66633ef5\nreal 0m0.631s\nuser 0m0.428s\nsys 0m0.120s\n\n# time git log --format=%H --follow contrib/git-resurrect.sh\ne37eae0c1e13cb418947383f7c803d9463bfa3d7\nd047154e7b2ab9c7191b0d72484012085051d521\nfba275dc93319ffa31ecebe015f8cda671fcf0e5\n51ba8ce372ad9fcab04a013252b819625c44770a\n50ab6558bf688e15048e189bdaf9174b217e1748\ne1ff064e1bffedb917c491681b7bfd4d66633ef5\nreal 0m1.386s\nuser 0m1.272s\nsys 0m0.066s\n\nYou see that with --follow 3c833cae446364872b759c7622af2760a2f81a11 commit is missing.\n\nI also timed it, to note that git log --follow can be much slower. In my project I have seen a case, where git log takes ~10 seconds for a file, but --follow takes ~90 seconds.\n\nThank you for looking at this.\n\nBest regards,\nRihards"}]}