tig-helpers provides two helpful scripts that are easy to integrate with tig (which can bind
a key to run an executable):
tig is a great interface for reading git commits, but too often
there are GitHub issues or URLs mentioned in a commit message
that are tedious to open in a browser. The
open-links-in-commit-message script here takes a
commit ID and opens in your browser all of the GitHub issues, Debian bugs, and URLs mentioned
in that commit.
open-commit script takes a commit ID and opens in your browser the corresponding commit
page on the web.
git clone https://github.com/ludios/tig-helpers
bind generic x @/PATH/TO/tig-helpers/open-links-in-commit-message %(commit) bind generic X @/PATH/TO/tig-helpers/open-commit %(commit)
Move to whichever commit you're interested in and press the
x key (or whichever key was set in the tig config).
If it doesn't seem to be working, replace
! in the tig config to see output from the script.