libgit2

git_refspec_transform

Version:

Transform a reference to its target following the refspec's rules

Signature

int git_refspec_transform(git_buf *out, const git_refspec *spec, const char *name);

Parameters

In
out

where to store the target name

In
spec

the refspec

const char *
In
name

the name of the reference to transform

Returns

int

0, GIT_EBUFS or another error

Versions