Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tig blame view: How to come back (child commit) after loading parent commit

Tags:

git-blame

tig

In a blame view, I use ',' to load blame for the parent commit. How to come back to the child?

like image 420
Dilip M Avatar asked Sep 27 '13 04:09

Dilip M


2 Answers

How I use TIG blame view:

  • Step backwards in time to the commit of a given line (B key)
  • Step backwards to the parent commit of a given line (, key).
  • Stepping forwards can be done by going to the main view (m key), selecting a more recent revision, and entering blame view again (B key).

It does not preserve the viewing location when stepping to a parent commit (it seems to when using the line's commit).

(From my answer elsewhere https://stackoverflow.com/a/15301595/331858)

like image 79
Vincent Scheib Avatar answered Sep 22 '22 13:09

Vincent Scheib


You can come back to the child with <, i.e. shift + ,

like image 44
steel Avatar answered Sep 22 '22 13:09

steel