git_refspec_transform

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

extern (C) nothrow @nogc public
int
git_refspec_transform

Parameters

out_ libgit2.buffer.git_buf*

where to store the target name

spec const(libgit2.types.git_refspec)*

the refspec

name const(char)*

the name of the reference to transform

Return Value

Type: int

0, git_error_code.GIT_EBUFS or another error

Meta