tig helpers: open-links-in-commit-message to open GitHub issues and URLs mentioned in the current commit you're looking at in tig; open-commit to open the commit on the web
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.travis.yml
README.md
open-commit
open-links-in-commit-message
util.py

README.md

tig-helpers

Build status

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.