View a python function's history over-time with Git & FZF
Posted on 12 Dec, 2021
I am kinda hooked up on modifying my git terminal workflow and integrate FZF wherever I can, this is such an example script to see changes in a python function overtime in your git history. And yes, its interesting (& stupid)
The actual trick is finding all python functions and methods names in a given file using grep
Next we plug the function name with filename in this git
command
Read more about git log searching
Below is a screencast demoing the same for rich package
If you are still interested, here is the script to hack around.
I wish this was scalable to all the programming languages but currently I don't have any clue on how to do this If you want to contribute help me by adding
grep
patterns to do the same search for you favourite programming language. Thanks
Last updated