libgit2

git_refspec_transform

Version:

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

Signature

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

Parameters

char *
In
out

where to store the target name

size_t
In
outlen

the size ouf the out buffer

In
spec

the refspec

const char *
In
name

the name of the reference to transform

Returns

int

GIT_SUCCESS, GIT_ESHORTBUFFER or another error

Versions