Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 3.20110906.bpo…
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.536 kb
{- git-annex upgrade support
-
- Copyright 2010 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Upgrade where
import Types
import Version
import qualified Upgrade.V0
import qualified Upgrade.V1
import qualified Upgrade.V2
{- Uses the annex.version git config setting to automate upgrades. -}
upgrade :: Annex Bool
upgrade = do
version <- getVersion
case version of
Just "0" -> Upgrade.V0.upgrade
Just "1" -> Upgrade.V1.upgrade
Just "2" -> Upgrade.V2.upgrade
_ -> return True
Jump to Line
Something went wrong with that request. Please try again.