From: Mike Frysinger Date: Tue, 19 Apr 2016 06:51:02 +0000 (-0400) Subject: vcs-url: more updates X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a23d5466c647520e76004615b2a11e1030d61ce1;p=home.git vcs-url: more updates --- diff --git a/.bin/vcs-url b/.bin/vcs-url index a86f8b7..bab6e78 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -83,9 +83,9 @@ git_url() { repo=$(echo "${remote}" | sed 's:.*git[.a-z]*.gentoo.org/::') url="https://gitweb.gentoo.org/${repo}/commit/?id=" ;; - git@github.com/*|\ + git@github.com[:/]*|\ *://github.com/*) - repo=$(echo "${remote}" | sed -e 's,^git@github.com/,,' -e 's,^https://github.com/,,' -e 's,^git://github.com/,,' -e 's:[.]git$::') + repo=$(echo "${remote}" | sed -e 's,^git@github.com[:/],,' -e 's,^https://github.com/,,' -e 's,^git://github.com/,,' -e 's:[.]git$::') url="https://github.com/${repo}/commit/" ;; git://git.sv.gnu.org/*) @@ -103,6 +103,10 @@ git_url() { *.googlesource.com/*) url="${remote%.git}/+/" ;; + *://git.enlightenment.org/*) + repo=$(echo "${remote}" | sed -e 's,^[^/]*//[^/]*/,,' -e 's,[.]git$,,') + url="https://git.enlightenment.org/${repo}.git/commit/?id=" + ;; *) echo "Unknown remote: ${remote}" exit 1