GitLink icon indicating copy to clipboard operation
GitLink copied to clipboard

Match multiple remotes

Open thughes opened this issue 2 years ago • 0 comments

Following on to the request in #180, I'd like the plugin to be able to allow specifying multiple remote names (or match with regex). The plugin would then show the Custom Hosts that have matching Base URLs.

For example, given a project that is made up of multiple git repos:

src/foo => git repository with remote "origin" that has base URL https://example.com
src/bar => git repository with remote "alt" that has base URL https://my-custom-host.com

I'd like to be able to configure matching against both the origin and alt remotes. Files in src/bar would use the Custom Host(s) configured for https://my-custom-host.com and files in src/foo would use the Custom Host(s) configured for https://example.com.

thughes avatar Apr 21 '22 16:04 thughes