Line history viewer - Git
Maybe annotations in IntelliJ IDEA is that you are looking for:
Showing and hiding annotations
- Open the desired file in the editor.
- To show annotations, right-click the left gutter, and select Annotate:
- To hide annotations, right-click the annotations gutter, and choose Close Annotations.
I know only the IntelliJ IDEA "Viewing Changes History for Selection" feature.
You could also try to use several git blame
commands to iterate over history of a fragment.