From: Mike Frysinger Date: Wed, 29 Nov 2023 21:53:36 +0000 (-0500) Subject: vcs-url: add support for rpc:// X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=108c3e8173fc03908e13c562ab5993ed61298f78;p=home.git vcs-url: add support for rpc:// --- diff --git a/.bin/vcs-url b/.bin/vcs-url index e729485..8eaff27 100755 --- a/.bin/vcs-url +++ b/.bin/vcs-url @@ -129,6 +129,10 @@ git_url() { repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,') url="https://gcc.gnu.org/git/?p=${repo}.git;a=commit;h=" ;; + rpc://*) + url="${remote#rpc://}" + url="https://${url/\//.googlesource.com/}/+/" + ;; *.googlesource.com/*) url="${remote%.git}/+/" ;;