Comment by shinycode
2 years ago
In jetbrain products, you can select any bloc of code and show the git history for this particular bloc. I don’t know exactly which command is behind it but I always thought it would be tedious to do it manually like you described
Probably they use libgit2 instead of git. But you can use git log -L for that.