libgit2

git_blob_lookup

Version:

Lookup a blob object from a repository. The generated blob object is owned by the revision repo and shall not be freed by the user.

Signature

int git_blob_lookup(git_blob **blob, git_repository *repo, const git_oid *id);

Parameters

git_blob **
In
blob

pointer to the looked up blob

git_repository *
In
repo

the repo to use when locating the blob.

const git_oid *
In
id

identity of the blob to locate.

Returns

int

0 on success; error code otherwise

Versions