git_reference_peel

Recursively peel reference until object of the specified type is found.

The retrieved peeled object is owned by the repository and should be closed with the git_object_free method.

If you pass git_object_t.GIT_OBJECT_ANY as the target type, then the object will be peeled until a non-tag object is met.

Parameters

out_ libgit2_d.types.git_object**

Pointer to the peeled git_object

ref_ const(libgit2_d.types.git_reference)*

The reference to be processed

type libgit2_d.types.git_object_t

The type of the requested object (git_object_t.GIT_OBJECT_COMMIT, git_object_t.GIT_OBJECT_TAG, git_object_t.GIT_OBJECT_TREE, git_object_t.GIT_OBJECT_BLOB or git_object_t.GIT_OBJECT_ANY).

Return Value

Type: int

0 on success, git_error_code.GIT_EAMBIGUOUS, git_error_code.GIT_ENOTFOUND or an error code

Meta