Line history viewer - Git

David.LPower picture David.LPower · Mar 27, 2013 · Viewed 30.5k times · Source

I was wondering if any of you knew of a tool that would allow me to select a line in my code and then view a list view of the history of that line, on a commit by commit basis.

Anyone know of such a tool?

Answer

Lu55 picture Lu55 · Aug 21, 2015

Maybe annotations in IntelliJ IDEA is that you are looking for:

the left gutter with enabled annotations

Showing and hiding annotations

  1. Open the desired file in the editor.
  2. To show annotations, right-click the left gutter, and select Annotate:
    context menu
  3. To hide annotations, right-click the annotations gutter, and choose Close Annotations.