git_annotated_commit_from_fetchhead

Creates a git_annotated_commit from the given fetch head data. The resulting git_annotated_commit must be freed with git_annotated_commit_free.

extern (C) nothrow @nogc
int
git_annotated_commit_from_fetchhead

Parameters

out_ libgit2_d.types.git_annotated_commit**

pointer to store the git_annotated_commit result in

repo libgit2_d.types.git_repository*

repository that contains the given commit

branch_name const(char)*

name of the (remote) branch

remote_url const(char)*

url of the remote

id const(libgit2_d.oid.git_oid)*

the commit object id of the remote branch

Return Value

Type: int

0 on success or error code

Meta