tig review

on 2014-11-03

I'm using tig a lot for code review and before pushing my changes.

For code reviews, instead of coping the sha1 and go to github manually, I've done some bindings with some git alias too.

~/.tigrc

bind main Z !@sh -c '/bin/echo -n "$(git hub)/commit/%(commit)" | xargs xdg-open'
bind diff Z !@sh -c '/bin/echo -n "$(git hub)/commit/%(commit)" | xargs xdg-open'

~/.gitconfig

[alias]
    hub =! echo "https://github.com/"$(git config remote.origin.url) | sed -E s/[a-z]+@github.com:// | sed s/.git$//

Resources