git-annex/git-annex.hs
Joey Hess 2099407d8a Add --exclude option to exclude files from processing.
Required some lifting so flags are evaled in the Annex monad before
file filtering.
2010-12-08 14:07:49 -04:00

23 lines
489 B
Haskell

{- git-annex main program
-
- Copyright 2010 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
import System.Environment
import qualified Annex
import Core
import Upgrade
import CmdLine
import qualified GitRepo as Git
import BackendList
main :: IO ()
main = do
args <- getArgs
gitrepo <- Git.repoFromCwd
state <- Annex.new gitrepo allBackends
(actions, state') <- Annex.run state $ parseCmd args
tryRun state' $ [startup, upgrade] ++ actions