From c58e899dcf759ed38cd091b48d31fbe375cc6c25 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 29 Nov 2008 22:22:24 -0500 Subject: [PATCH] add git_gentoo_url --- .profile.d/gentoo.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index 179976b..e186cf9 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -58,7 +58,11 @@ _cvs_gentoo_url() { done unset _cvs_gentoo_url } - +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=," +} er() { [[ ! -e ChangeLog ]] \ -- 2.39.5