tig-helpers
tig-helpers
provides two helpful scripts that are easy to integrate with tig (which can bind
a key to run an executable):
open-links-in-commit-message
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
The open-commit
script takes a commit ID and opens in your browser the corresponding commit
page on the web.
Installation
git clone https://github.com/ludios/tig-helpers
Add to ~/.config/tig/config
or ~/.tigrc
:
bind generic x @/PATH/TO/tig-helpers/open-links-in-commit-message %(commit)
bind generic X @/PATH/TO/tig-helpers/open-commit %(commit)
Usage
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 @
with !
in the tig config to see output from the script.