2011-06-22 22:46:45 +00:00
|
|
|
{- git-annex command
|
|
|
|
-
|
|
|
|
- Copyright 2011 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Command.Merge where
|
|
|
|
|
2011-10-04 02:24:57 +00:00
|
|
|
import AnnexCommon
|
2011-06-22 22:46:45 +00:00
|
|
|
import Command
|
|
|
|
import qualified Branch
|
|
|
|
|
|
|
|
command :: [Command]
|
|
|
|
command = [repoCommand "merge" paramNothing seek
|
2011-09-14 17:32:46 +00:00
|
|
|
"auto-merge remote changes into git-annex branch"]
|
2011-06-22 22:46:45 +00:00
|
|
|
|
|
|
|
seek :: [CommandSeek]
|
|
|
|
seek = [withNothing start]
|
|
|
|
|
2011-09-15 20:50:49 +00:00
|
|
|
start :: CommandStart
|
2011-06-22 22:46:45 +00:00
|
|
|
start = do
|
|
|
|
showStart "merge" "."
|
|
|
|
next perform
|
|
|
|
|
|
|
|
perform :: CommandPerform
|
|
|
|
perform = do
|
|
|
|
Branch.update
|
|
|
|
next $ return True
|