resolvemerge: finish up by committing
This commit is contained in:
parent
61a35de433
commit
822f4619ae
2 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
module Annex.AutoMerge
|
module Annex.AutoMerge
|
||||||
( autoMergeFrom
|
( autoMergeFrom
|
||||||
, resolveMerge
|
, resolveMerge
|
||||||
|
, commitResolvedMerge
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Common.Annex
|
import Common.Annex
|
||||||
|
|
|
@ -30,7 +30,9 @@ start = do
|
||||||
them <- fromMaybe (error nomergehead) . extractSha
|
them <- fromMaybe (error nomergehead) . extractSha
|
||||||
<$> liftIO (readFile merge_head)
|
<$> liftIO (readFile merge_head)
|
||||||
ifM (resolveMerge (Just us) them)
|
ifM (resolveMerge (Just us) them)
|
||||||
( next $ next $ return True
|
( do
|
||||||
|
void $ commitResolvedMerge Git.Branch.ManualCommit
|
||||||
|
next $ next $ return True
|
||||||
, error "Merge conflict could not be automatically resolved."
|
, error "Merge conflict could not be automatically resolved."
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue