git_gentoo_url() {
local repo=$(git config remote.origin.url | sed 's:.*git.overlays.gentoo.org/::')
git log -n3 ${1:-HEAD} | \
- sed "s,^commit ,http://git.overlays.gentoo.org/gitweb/?p=${repo};a=commitdiff;h=,"
+ sed "s,^commit ,http://gitweb.gentoo.org/${repo}/commit/?id=,"
}
svn_gentoo_url() {
if [[ -z $* ]] ; then