git_blob_create_from_disk

Read a file from the filesystem and write its content to the Object Database as a loose blob

extern (C) nothrow @nogc
int
git_blob_create_from_disk

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 can be bare or not

path const(char)*

file from which the blob will be created

Return Value

Type: int

0 or an error code

Meta