summaryrefslogtreecommitdiff
path: root/merge.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-10-26 21:44:16 +0100
committerCarlos Martín Nieto <[email protected]>2015-10-26 21:44:16 +0100
commit749963ce55c6391bf7222057b037344a0cb837cf (patch)
treeb0b8d11250139b37a76c6ead494114411c2970dc /merge.go
parentc4868aef6c3e22a5c339dea4dd5406bfc0bd095b (diff)
parent367cd8eb9b84538933774befa76c099298c32c81 (diff)
Merge pull request #266 from clns/update-libgit2
[next] Update libgit2 to 821131f
Diffstat (limited to 'merge.go')
-rw-r--r--merge.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/merge.go b/merge.go
index a52e8f8..53d5a72 100644
--- a/merge.go
+++ b/merge.go
@@ -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 {