libgit2

git_blob_lookup

Version:

Lookup a blob object from a repository.

Signature

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

Parameters

Out
blob

pointer to the looked up blob

In
repo

the repo to use when locating the blob.

In
id

identity of the blob to locate.

Returns

int

0 or an error code

Versions