In tig, is there a way to view diff for all files like Github pull request

609 Views Asked by At

In tig, when showing diff view, we can only view diff per commits. What I want to achieve is a way to view diff for all files (just like git diff or Github Pull Request diff view). Is there a way or a mode to do that? Example image: https://i.stack.imgur.com/Z197m.png

1

There are 1 best solutions below

0
Pham On

Don't know what you mean all files. diff view is already a pager for git diff. If you want to increase chunk context, just press ] or set it in .tigrc like

set diff-context = 300 # Number of lines to show around diff changes (diff)