summaryrefslogtreecommitdiff
path: root/Command/Upgrade.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-16 15:48:26 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-16 15:48:26 -0400
commitd7ef5fd2941fa66aa7f9c998fe4acfda60e63295 (patch)
treef31d160f1ce06bf2c8d9cf072acc9c392d93b5cf /Command/Upgrade.hs
parentbc21502b9a640e798dc6bbbb255aa9742a1c6187 (diff)
add explicit upgrade command
Diffstat (limited to 'Command/Upgrade.hs')
-rw-r--r--Command/Upgrade.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Command/Upgrade.hs b/Command/Upgrade.hs
new file mode 100644
index 000000000..3c9fa3eeb
--- /dev/null
+++ b/Command/Upgrade.hs
@@ -0,0 +1,22 @@
+{- git-annex command
+ -
+ - Copyright 2011 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -}
+
+module Command.Upgrade where
+
+import Command
+
+command :: [Command]
+command = [Command "upgrade" paramNothing seek "upgrade repository layout"]
+
+seek :: [CommandSeek]
+seek = [withNothing start]
+
+start :: CommandStartNothing
+start = do
+ -- The actual upgrading is handled by just running any command,
+ -- so nothing extra needs to be done.
+ return $ Just $ return $ Just $ return True