diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-22 18:46:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-22 18:46:56 -0400 |
commit | ad3770e0b203b32a07fa142d6d83c980b23310ee (patch) | |
tree | d07022b5d9b7628701a737e3d3042680e2998770 /Command | |
parent | 80302d0b46c5d45df1cf290796e0e27d9264ece8 (diff) |
add merge subcommand
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Merge.hs | 29 | ||||
-rw-r--r-- | Command/Status.hs | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/Command/Merge.hs b/Command/Merge.hs new file mode 100644 index 000000000..04328e8c5 --- /dev/null +++ b/Command/Merge.hs @@ -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 diff --git a/Command/Status.hs b/Command/Status.hs index 1a7f694ba..3b096d979 100644 --- a/Command/Status.hs +++ b/Command/Status.hs @@ -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] |