Skip to content

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

@dinosaure

Description

@dinosaure

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions