aboutsummaryrefslogtreecommitdiff
path: root/Core.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-11-11 18:21:54 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-11-11 18:21:54 -0400
commitf2c7a6e73d342f4f82be4e2839a2022f97539c65 (patch)
tree4a950305a09c6c324ab22be8be2a18aed31e2a76 /Core.hs
parentce62f5abf16e578f9f4b86cd140ea2ddfb1e4217 (diff)
got rid of several more calls to git when finding unlocked files
Diffstat (limited to 'Core.hs')
-rw-r--r--Core.hs14
1 files changed, 0 insertions, 14 deletions
diff --git a/Core.hs b/Core.hs
index 0c06d2310..8497a7f36 100644
--- a/Core.hs
+++ b/Core.hs
@@ -224,20 +224,6 @@ getKeysReferenced = do
keypairs <- mapM Backend.lookupFile files
return $ map fst $ catMaybes keypairs
-{- Passed a location (a directory or a single file, returns
- - files there that are unlocked for editing. -}
-unlockedFiles :: FilePath -> Annex [FilePath]
-unlockedFiles l = do
- -- unlocked files have changed type from a symlink to a regular file
- g <- Annex.gitRepo
- typechangedfiles <- liftIO $ Git.typeChangedFiles g l
- unlockedfiles <- filterM notsymlink typechangedfiles
- return unlockedfiles
- where
- notsymlink f = do
- s <- liftIO $ getSymbolicLinkStatus f
- return $ not $ isSymbolicLink s
-
{- Uses the annex.version git config setting to automate upgrades. -}
autoUpgrade :: Annex ()
autoUpgrade = do