make unused check branches and tags too

needs time and space optimisation
This commit is contained in:
Joey Hess 2011-09-28 16:43:10 -04:00
parent 5ae270001c
commit 297bc648b9
4 changed files with 41 additions and 7 deletions

View file

@ -30,3 +30,7 @@ allowWrite :: FilePath -> IO ()
allowWrite f = do
s <- getFileStatus f
setFileMode f $ fileMode s `unionFileModes` ownerWriteMode
{- Checks if a file mode indicates it's a symlink. -}
isSymLink :: FileMode -> Bool
isSymLink mode = symbolicLinkMode `intersectFileModes` mode == symbolicLinkMode