In a blame view, I use ',' to load blame for the parent commit. How to come back to the child?
Asked
Active
Viewed 2,172 times
3 Answers
6
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)

Community
- 1
- 1

Vincent Scheib
- 17,142
- 9
- 61
- 77
3
Example usage pattern:
Open tig in your git repository's folder:
cd your/repo
tig
- Use up / down cursor keys - to select the revision you want to start from
- t - enter tree view
- up / down / enter to find the file you want
- b to open blame view
- up / down - to move up and down the lines in the file
- View full patch for selected line:
- enter to view the last patch for that line
- q to close the patch view
- To view older versions:
- , - to show the blame of the file from before this patch
- < (i.e. shift+,) to step back out to more recent versions of the file
You can jump straight to a file with:
tig blame filename

Tim Abell
- 11,186
- 8
- 79
- 110