Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple function to push a new file in the fly #562

Open
dinosaure opened this issue Mar 17, 2022 · 0 comments
Open

Add a simple function to push a new file in the fly #562

dinosaure opened this issue Mar 17, 2022 · 0 comments

Comments

@dinosaure
Copy link
Member

dinosaure commented Mar 17, 2022

It could be interesting to have a special function and the purpose of it is to push only a new file into a remote Git repository. In some cases, it can be interesting where a unikernel does not really need a internal store but it mostly wants to save something remotly.

val push_new_file : Mimic.ctx -> Smart_git.Endpoint.t -> path:Fpath.t -> contents:string -> (unit, [> `Conflict |  `Msg of string ]) Lwt.t

The Conflict error appears if the path already exists remotely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant