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:
parent
af45d42224
commit
06a1f5f742
6 changed files with 82 additions and 66 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue