git-annex/Command/Direct.hs

22 lines
540 B
Haskell
Raw Normal View History

2012-12-13 19:44:56 +00:00
{- git-annex command
-
- Copyright 2012 Joey Hess <id@joeyh.name>
2012-12-13 19:44:56 +00:00
-
- Licensed under the GNU AGPL version 3 or higher.
2012-12-13 19:44:56 +00:00
-}
module Command.Direct where
import Command
cmd :: Command
cmd = notBareRepo $ noDaemonRunning $
command "direct" SectionSetup "switch repository to direct mode (deprecated)"
paramNothing (withParams seek)
2012-12-13 19:44:56 +00:00
seek :: CmdParams -> CommandSeek
seek = withNothing (commandAction start)
2012-12-13 19:44:56 +00:00
start :: CommandStart
start = giveup "Direct mode is not supported by this repository version. Use git-annex unlock instead."