libgit2

git_refspec_rtransform

Version:

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

Signature

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

Parameters

In
out

where to store the source reference 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