fast mode
Add --fast flag, that can enable less expensive, but also less thurough versions of some commands. * Add --fast flag, that can enable less expensive, but also less thurough versions of some commands. * fsck: In fast mode, avoid checking checksums. * unused: In fast mode, just show all existing temp files as unused, and avoid expensive scan for other unused content.
This commit is contained in:
parent
aa2d8e33df
commit
c21998722c
6 changed files with 36 additions and 10 deletions
|
@ -80,9 +80,10 @@ keyValue size file = do
|
|||
checkKeyChecksum :: SHASize -> Key -> Annex Bool
|
||||
checkKeyChecksum size key = do
|
||||
g <- Annex.gitRepo
|
||||
fast <- Annex.getState Annex.fast
|
||||
let file = gitAnnexLocation g key
|
||||
present <- liftIO $ doesFileExist file
|
||||
if not present
|
||||
if (not present || fast)
|
||||
then return True
|
||||
else do
|
||||
s <- shaN size file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue