package git
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=227385f431a39cda22094615ae4c9d834bc91d51cc2d82e1739db307f9987c6d
sha512=29842d41018a3b6607be9da5967c215fd42ea047a529de3a19d9f51048db67842acbdae572eb0bb2e59f3d181fd787f3f0c304e7538112ebbaa310f1b6ab498b
doc/smart_git/Smart_git/index.html
Module Smart_gitSource
Mimic values.
When the user use an Endpoint.t to Make.fetch or Make.push, we fill the given Mimic's ctx with some available informations such as:
- if we want to
Make.fetch(`Rd) orMake.push(`Wr) - the scheme/protocol that the user would like to use (
git://, SSH or HTTP - with or without TLS) - the path of the git repository
- the host (an IP adress or a domain name)
- the SSH user iff the user would like to use SSH
- the port that the user would like to use
From this informations, the end-user can process them through the Mimic API (with Mimic.fold) and describe how to create needed values to start a protocol from them.
For example, if the user wants to use mirage-tcpip which needs an IP address and a port, he is able to re-use/map/fold git_host and git_port to craft what mirage-tcpip really needs.
Of course, such job is definitely outside the scope of ocaml-git and permits to us to be free about protocol implementations. An example of the plumbing needed is able with git-mirage which re-use these values to be able to start a mirage-tcpip connection, a awa-ssh connection of a cohttp (with or without ocaml-tls) connection.