git_reference_dwim

Lookup a reference by DWIMing its short name

Apply the git precendence rules to the given shorthand to determine which reference the user is referring to.

extern (C) nothrow @nogc
int
git_reference_dwim

Parameters

out_ libgit2_d.types.git_reference**

pointer in which to store the reference

repo libgit2_d.types.git_repository*

the repository in which to look

shorthand const(char)*

the short name for the reference

Return Value

Type: int

0 or an error code

Meta