14

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

Right leg
  • 16,080
  • 7
  • 48
  • 81
Dilip M
  • 141
  • 5

3 Answers3

8

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

steel
  • 11,883
  • 7
  • 72
  • 109
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

  1. Use up / down cursor keys - to select the revision you want to start from
  2. t - enter tree view
  3. up / down / enter to find the file you want
  4. b to open blame view
  5. up / down - to move up and down the lines in the file
  6. View full patch for selected line:
    • enter to view the last patch for that line
    • q to close the patch view
  7. 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