factor out file list stuff from GitRepo

GitRepo is getting too large an interface; these all fit nicely into a
submodule.
This commit is contained in:
Joey Hess 2011-06-29 11:55:16 -04:00
parent af45d42224
commit 06a1f5f742
6 changed files with 82 additions and 66 deletions

View file

@ -26,6 +26,7 @@ import LocationLog
import qualified Annex
import qualified AnnexQueue
import qualified GitRepo as Git
import qualified GitRepo.LsFiles as LsFiles
import Backend
import Messages
import Version
@ -92,7 +93,7 @@ updateSymlinks :: Annex ()
updateSymlinks = do
showNote "updating symlinks..."
g <- Annex.gitRepo
files <- liftIO $ Git.inRepo g [Git.workTree g]
files <- liftIO $ LsFiles.inRepo g [Git.workTree g]
forM_ files $ fixlink
where
fixlink f = do