]> git.wh0rd.org Git - home.git/commitdiff
vcs-url: add gcc support
authorMike Frysinger <vapier@gentoo.org>
Fri, 13 Oct 2023 07:07:51 +0000 (12:52 +0545)
committerMike Frysinger <vapier@gentoo.org>
Fri, 13 Oct 2023 07:07:51 +0000 (12:52 +0545)
.bin/vcs-url

index e743c9ceb1f061956cf0f8a332d65f46dc9172aa..e729485ff14e5ee57623b6163601c7adead2b42a 100755 (executable)
@@ -125,6 +125,10 @@ git_url() {
                repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,')
                url="https://sourceware.org/git/?p=${repo}.git;a=commit;h="
                ;;
+       *://gcc.gnu.org/*)
+               repo=$(echo "${remote}" | sed -e 's,.*/,,' -e 's,[.]git$,,')
+               url="https://gcc.gnu.org/git/?p=${repo}.git;a=commit;h="
+               ;;
        *.googlesource.com/*)
                url="${remote%.git}/+/"
                ;;