package mybuild

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Extract version information from VCS (git)

val git_describe : ?git_dir:string -> ?dirty:string -> unit -> string

specify git_dir to prevent git from recursing to the root of filesystem if there is no .git subdirectory

val save : ?git_dir:string -> ?default:string -> ?identify:bool -> string -> unit

Save extracted version into specified OCaml source file, as let id = <detected version>

  • parameter default

    substitute for version if VCS information is not available, will be inserted without any quoting, defaults to "<unknown>"

  • parameter identify

    whether to include username and hostname into generated file (default: false)

val ocaml : (int * int * int * string) option

Parsed OCaml compiler version - major,minor,patch,rest

OCaml

Innovation. Community. Security.