Module 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 = {
  1. platform : Platform.t;
  2. protocol : Protocol.t;
  3. user_handle : User_handle.t;
  4. repo_name : Repo_name.t;
}
val compare : t -> t -> int
val equal : t -> t -> bool
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.