diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-10-26 21:44:16 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-10-26 21:44:16 +0100 |
| commit | 749963ce55c6391bf7222057b037344a0cb837cf (patch) | |
| tree | b0b8d11250139b37a76c6ead494114411c2970dc /merge.go | |
| parent | c4868aef6c3e22a5c339dea4dd5406bfc0bd095b (diff) | |
| parent | 367cd8eb9b84538933774befa76c099298c32c81 (diff) | |
Merge pull request #266 from clns/update-libgit2
[next] Update libgit2 to 821131f
Diffstat (limited to 'merge.go')
| -rw-r--r-- | merge.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -81,7 +81,14 @@ func (r *Repository) AnnotatedCommitFromRef(ref *Reference) (*AnnotatedCommit, e type MergeTreeFlag int const ( + // Detect renames that occur between the common ancestor and the "ours" + // side or the common ancestor and the "theirs" side. This will enable + // the ability to merge between a modified and renamed file. MergeTreeFindRenames MergeTreeFlag = C.GIT_MERGE_TREE_FIND_RENAMES + // If a conflict occurs, exit immediately instead of attempting to + // continue resolving conflicts. The merge operation will fail with + // GIT_EMERGECONFLICT and no index will be returned. + MergeTreeFailOnConflict MergeTreeFlag = C.GIT_MERGE_TREE_FAIL_ON_CONFLICT ) type MergeOptions struct { |
