lilydjwg / git-linked

git logs with hyperlinks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A wrapper script to add hyperlinks to git logs

Install

You'll need a terminal supporting hyperlinks. See Hyperlinks in terminal emulators for more info.

It requires Python 3 and pygit2 to run. And the default pager is less.

For less, if you set custom options (via $LESS), make sure -r (instead of -R) are included. If you use a custom $PAGER, make sure it supports hyperlinks.

git commits are linked with the fugitive:// scheme, GitHub links are appended as (web), GitHub issues are linked. The fugitive:// scheme is surposed to be used by the Vim plugin. search-and-view has a utility supporting this.

Usage

Method 1: Replace git with git-linked in the log viewing command (your git aliases are supported):

git-linked log ....

Method 2: Pipe data into git-linked:

git log .... --color=always | git-linked

Screenshot

Screenshot

About

git logs with hyperlinks

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%