libgit2

git_revwalk_push_ref

Version:

Push the OID pointed to by a reference

The reference must point to a committish.

Signature

int git_revwalk_push_ref(git_revwalk *walk, const char *refname);

Parameters

In
walk

the walker being used for the traversal

const char *
In
refname

the reference to push

Returns

int

0 or an error code

Versions