libgit2

git_refspec_rtransform

Version:

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

Signature

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

Parameters

char *
In
out

where to store the source reference name

size_t
In
outlen

the size of the out buffer

In
spec

the refspec

const char *
In
name

the name of the reference to transform

Returns

int

0, GIT_EBUFS or another error

Versions