Using tig pager mode with ordinary patch/diff
tig is a very clever git repository browser. In addition to its normal usage (which is the sole "tig" command), you may use it as a pager and pass the git command output to it:
git show | tig
You may also use tig with ordinary unified diff output, for example:
diff -u a.txt b.txt | tig
or you may even browse your patches using tig:
tig < some_patch_file.patch
Written by Gökçen Eraslan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Patch
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#