Vcs.Url
A url to access a repository on a supported platform.
Some examples:
[ "https://github.com/ahrefs/atd.git"; "git@github.com:mbarbin/ocaml-grpc.git" ]
module Protocol : sig ... end
type t = {
platform : Platform.t;
protocol : Protocol.t;
user_handle : User_handle.t;
repo_name : Repo_name.t;
}
val hash : t -> int
val seeded_hash : int -> t -> int
val sexp_of_t : t -> Sexplib0.Sexp.t
val to_string : t -> string
Create a complete string suitable for use with git commands, such as remote add, clone, etc.
val of_string : string -> (t, [ `Msg of string ]) Stdlib.Result.t
Parse a string into a url.
val v : string -> t
A wrapper for of_string
that raises Invalid_argument
on invalid input.