git_refdb_backend.lookup

Queries the refdb backend for a given reference.

A refdb implementation must provide this function.

struct git_refdb_backend
int function(libgit2_d.types.git_reference** out_, .git_refdb_backend* backend, const(char)* ref_name) lookup;

Return Value

0 on success, GIT_ENOTFOUND if the reference does exist, otherwise a negative error code.

Meta