git_index_write_tree_to

Write the index as a tree to the given repository

This method will do the same as git_index_write_tree, but letting the user choose the repository where the tree will be written.

The index must not contain any file in conflict.

extern (C) nothrow @nogc
int
git_index_write_tree_to

Parameters

out_ libgit2_d.oid.git_oid*

Pointer where to store OID of the the written tree

index libgit2_d.types.git_index*

Index to write

repo libgit2_d.types.git_repository*

Repository where to write the tree

Return Value

Type: int

0 on success, git_error_code.GIT_EUNMERGED when the index is not clean or an error code

Meta