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

In
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 on success; error code otherwise

Versions