2.22 Merge
(require libgit2/include/merge) | package: libgit2 |
procedure
(git_merge repo their_heads their_heads_len merge_opts checkout_opts) → integer? repo : repository? their_heads : (cpointer annotated_commit?) their_heads_len : integer? merge_opts : git_merge_opts? checkout_opts : git_checkout_opts?
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().
procedure
(git_merge_analysis analysis_out preference_out repo their_heads their_heads_len) → integer? analysis_out : (cpointer git_merge_analysis_t) preference_out : (cpointer gitmerge_preference_t) repo : repository? their_heads : (cpointer annotated_commit?) their_heads_len : integer?
procedure
(git_merge_base out repo one two) → integer?
out : oid? repo : repository? one : oid? two : oid?
procedure
(git_merge_base_many out repo length input_array) → integer? out : oid? repo : repository? length : integer? input_array : (cpointer oid?)
procedure
(git_merge_base_octopus out repo length input_array) → integer? out : oid? repo : repository? length : integer? input_array : (cpointer oid?)
procedure
(git_merge_bases out repo one two) → integer?
out : oidarray? repo : repository? one : oid? two : oid?
procedure
(git_merge_bases_many out repo length input_array) → integer? out : oidarray? repo : repository? length : integer? input_array : (cpointer oid?)
procedure
(git_merge_commits repo our_commit their_commit opts) → index? repo : repository? our_commit : commit? their_commit : commit? opts : (or/c git_merge_opts? #f)
The returned index must be freed explicitly with git_index_free.
procedure
(git_merge_file out ancestor ours theirs opts) → integer?
out : git_merge_file_result? ancestor : merge_file_input? ours : merge_file_input? theirs : merge_file_input? opts : (or/c git_merge_file_opts?)
Note that this function does not reference a repository and any configuration must be passed as git_merge_file_options.
procedure
(git_merge_file_from_index out repo ancestor ours theirs opts) → integer? out : merge_file_result? repo : repository? ancestor : index_entry? ours : index_entry? theirs : index_entry? opts : (or/c git_merge_file_opts? #f)
procedure
(git_merge_file_init_input opts version) → integer?
opts : merge_file_input? version : integer?
procedure
(git_merge_file_init_options opts version) → integer?
opts : merge_file_options? version : integer?
procedure
(git_merge_file_result_free result) → void?
result : merge_file_result?
procedure
(git_merge_trees repo ancestor_tree our_tree their_tree opts) → index? repo : repository? ancestor_tree : tree? our_tree : tree? their_tree : tree? opts : (or/c git_merge_options? #f)
The returned index must be freed explicitly with git_index_free.