add merge subcommand
This commit is contained in:
parent
80302d0b46
commit
ad3770e0b2
5 changed files with 42 additions and 5 deletions
29
Command/Merge.hs
Normal file
29
Command/Merge.hs
Normal file
|
@ -0,0 +1,29 @@
|
|||
{- git-annex command
|
||||
-
|
||||
- Copyright 2011 Joey Hess <joey@kitenet.net>
|
||||
-
|
||||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Command.Merge where
|
||||
|
||||
import Command
|
||||
import qualified Branch
|
||||
import Messages
|
||||
|
||||
command :: [Command]
|
||||
command = [repoCommand "merge" paramNothing seek
|
||||
"auto-merges remote changes into the git-annex branch"]
|
||||
|
||||
seek :: [CommandSeek]
|
||||
seek = [withNothing start]
|
||||
|
||||
start :: CommandStartNothing
|
||||
start = do
|
||||
showStart "merge" "."
|
||||
next perform
|
||||
|
||||
perform :: CommandPerform
|
||||
perform = do
|
||||
Branch.update
|
||||
next $ return True
|
|
@ -47,7 +47,7 @@ sizeList :: [a] -> SizeList a
|
|||
sizeList l = (l, genericLength l)
|
||||
|
||||
command :: [Command]
|
||||
command = [repoCommand "status" (paramNothing) seek
|
||||
command = [repoCommand "status" paramNothing seek
|
||||
"shows status information about the annex"]
|
||||
|
||||
seek :: [CommandSeek]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue