News for hackers. Stuff that matters.
Re:See the History of a Method with Git log -L by anitil on Sunday November 05, 2023 @07:49PM (#38157480)
I've attempted something similar to your ast-search tool, but it instead iterates through git history, pulls out the relevant text and then provides the diff to the user.

It's a tricky problem because it sits somewhere between text, where a function name could get renamed and it's obvious because it is textually similar, and an AST where 'similarity' is a difficult concept.

I struggled to make it usable, but of course there's a module to do half of it that I didn't find initially - https://pypi.org/project/pyastsim/

There are no comments on this comment yet.