git_blob_create_from_workdir

Read a file from the working folder of a repository and write it to the Object Database as a loose blob

extern (C) nothrow @nogc
int
git_blob_create_from_workdir

Parameters

id libgit2_d.oid.git_oid*

return the id of the written blob

repo libgit2_d.types.git_repository*

repository where the blob will be written. this repository cannot be bare

relative_path const(char)*

file from which the blob will be created, relative to the repository's working dir

Return Value

Type: int

0 or an error code

Meta