git_merge

Merges the given commit(s) into HEAD, writing the results into the working directory. Any changes are staged for commit and any conflicts are written to the index. Callers should inspect the repository's index after this completes, resolve any conflicts and prepare a commit.

For compatibility with git, the repository is put into a merging state. Once the commit is done (or if the uses wishes to abort), you should clear this state by calling git_repository_state_cleanup().

Parameters

repo libgit2_d.types.git_repository*

the repository to merge

their_heads const(libgit2_d.types.git_annotated_commit)**

the heads to merge into

their_heads_len size_t

the number of heads to merge

merge_opts const(.git_merge_options)*

merge options

checkout_opts const(libgit2_d.checkout.git_checkout_options)*

checkout options

Return Value

Type: int

0 on success or error code

Meta