11

In the Tig text-mode interface for git, one can view a blame for an individual file and then open a diff view to see that commit that modified that line. e.g.

tig blame file.cpp
(Select a line, press enter.)

However, the diff displayed is limited to the individual file, even if the commit modified multiple files. This is a good default, but is there a way to expand this view to full commit with diff across all files?

The current work around is to copy paste the commit hash, exit, and then use either git or tig to show it.

Kinlan
  • 16,315
  • 5
  • 56
  • 88
Vincent Scheib
  • 17,142
  • 9
  • 61
  • 77
  • I don't think it is currently possible. Tig is a great tool, but still clearly has lots of features missing yet. Maybe you can suggest it as [an issue](https://github.com/jonas/tig/issues). – mgarciaisaia Mar 09 '13 at 06:58

1 Answers1

27

Use the toggle-files action. By default it is bound to '%'.

Jonas Fonseca
  • 1,811
  • 15
  • 15