libgit2

merge

Version:
Git merge routines

Objects

Merge heads, the input to merge

Merge result

Structs

The file inputs to git_merge_file git_merge_file_input structure with descriptions of the files in each side of the conflict for use in producing the merge file.

Macros

Enums

Flags for git_merge_tree options passed in via the flags value in the git_merge_options.

Merge file favor options for git_merge_options instruct the file-level merging functionality how to deal with conflicting regions of the files

The results of git_merge_analysis indicate the merge opportunities

Functions

Initializes a git_merge_file_input with default values creating an instance with GIT_MERGE_FILE_INPUT_INIT.

Initializes a git_merge_file_options with default values creating an instance with GIT_MERGE_FILE_OPTIONS_INIT.

Initializes a git_merge_options with default values creating an instance with GIT_MERGE_OPTIONS_INIT.

Analyzes the given branch(es) and determines the opportunities for merging them into the HEAD of the repository

Find a merge base between two commits

Find a merge base given a list of commits

Find a merge base in preparation for an octopus merge

Creates a git_merge_head from the given reference git_merge_head must be freed with git_merge_head_free.

Creates a git_merge_head from the given fetch head data git_merge_head must be freed with git_merge_head_free.

Creates a git_merge_head from the given commit id git_merge_head must be freed with git_merge_head_free.

Gets the commit ID that the given git_merge_head refers to

Merge two files as they exist in the in-memory data structures, using the given common ancestor as the baseline, producing a git_merge_file_result that reflects the merge result git_merge_file_result must be freed with git_merge_file_result_free.

Merge two files as they exist in the index, using the given common ancestor as the baseline, producing a git_merge_file_result that reflects the merge result git_merge_file_result_free.

Merge two trees, producing a git_index that reflects the result of the merge or checked out. If the index is to be converted to a tree, the caller should resolve any conflicts that arose as part of the merge.

Merge two commits, producing a git_index that reflects the result of the merge or checked out. If the index is to be converted to a tree, the caller should resolve any conflicts that arose as part of the merge.

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