diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-11 18:21:54 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-11 18:21:54 -0400 |
commit | f2c7a6e73d342f4f82be4e2839a2022f97539c65 (patch) | |
tree | 4a950305a09c6c324ab22be8be2a18aed31e2a76 /Core.hs | |
parent | ce62f5abf16e578f9f4b86cd140ea2ddfb1e4217 (diff) |
got rid of several more calls to git when finding unlocked files
Diffstat (limited to 'Core.hs')
-rw-r--r-- | Core.hs | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -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 |