Skip to main content

is_remote_url

Function is_remote_url 

Source
pub fn is_remote_url(s: &str) -> bool
Expand description

Returns true if s looks like a remote git URL.

Recognised schemes: https://, http://, git://, ssh://, and SCP-style git@host:path used by GitHub/GitLab.