now finds files in git or not depending on what command wants
This commit is contained in:
parent
bfa581a218
commit
e80160380a
3 changed files with 41 additions and 32 deletions
|
@ -12,9 +12,9 @@ import qualified GitRepo as Git
|
|||
|
||||
main = do
|
||||
args <- getArgs
|
||||
(flags, actions) <- parseCmd args
|
||||
gitrepo <- Git.repoFromCwd
|
||||
state <- new gitrepo
|
||||
(flags, actions) <- parseCmd args state
|
||||
tryRun state $ [startup flags] ++ actions ++ [shutdown]
|
||||
|
||||
{- Runs a list of Annex actions. Catches exceptions, not stopping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue