Re: [ANNOUNCE] git related v0.3
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 27, 2021, 00:58 UTC
- Message-ID
- <60aeee9a14f13_770c208cd@natae.notmuch>
- In-Reply-To
- <CACBZZX6gOeTrLJwL-Zp5hEEbWCipioPgNKt7Tc41ixcQLQshiw@mail.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
Show 7 quoted lines
> The general heuristic I use, which I've found to be much better than > git-blame is: > > 1. Find substrings of code I'm directly removing/altering, and > functions I'm removing/altering > 2. Do git log --reverse -p -S'<substr>' (maybe with -- file) for a > list of substrings
v1.0 of git-related has a similar tool: git-who, which you can use to do precisely that:
git who -S'<substr>'
Cheers.
-- Felipe Contreras