123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869(*
* Copyright (c) 2013-2022 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)openIrmin.Backend.Confletspec=Spec.v"git"moduleKey=structletreference:Git.Reference.tIrmin.Type.t=letof_stringstr=Git.Reference.of_stringstr|>Result.get_okinletto_stringr=Git.Reference.to_stringrinIrmin.Type.(mapstring)of_stringto_stringlethead=key~spec~doc:"The main branch of the Git repository.""head"Irmin.Type.(optionreference)Noneletbare=key~spec~doc:"Do not expand the filesystem on the disk.""bare"Irmin.Type.boolfalseletlevel=key~spec~doc:"The Zlib compression level.""level"Irmin.Type.(optionint)Noneletbuffers=key~spec~doc:"The number of 4K pre-allocated buffers.""buffers"Irmin.Type.(optionint)Noneletdot_git=key~spec~doc:"The location of the .git directory. By default set to [$root/.git].""dot-git"Irmin.Type.(optionstring)Noneletroot=rootspecendletinit?head?bare?level?dot_git?buffersroot=letmoduleC=Irmin.Backend.Confinletconfig=C.emptyspecinletconfig=C.addconfigKey.rootrootinletconfig=matchbarewith|None->C.addconfigKey.bare(C.defaultKey.bare)|Someb->C.addconfigKey.barebinletconfig=C.addconfigKey.headheadinletconfig=C.addconfigKey.levellevelinletconfig=C.addconfigKey.dot_gitdot_gitinletconfig=C.addconfigKey.buffersbuffersinC.verifyconfig