better interface for catKey'
It only needs the size, so don't require the other stuff. Should let it be used in more places, making things faster.
This commit is contained in:
parent
69dd214d59
commit
8bae692486
2 changed files with 9 additions and 4 deletions
|
@ -105,7 +105,10 @@ clean file = do
|
|||
Nothing -> do
|
||||
let fileref = Git.Ref.fileRef file
|
||||
indexmeta <- catObjectMetaData fileref
|
||||
go' b indexmeta =<< catKey' fileref indexmeta
|
||||
oldkey <- case indexmeta of
|
||||
Just (_, sz, _) -> catKey' fileref sz
|
||||
Nothing -> return Nothing
|
||||
go' b indexmeta oldkey
|
||||
go' b indexmeta oldkey = ifM (shouldAnnex file indexmeta oldkey)
|
||||
( do
|
||||
-- Before git 2.5, failing to consume all stdin here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue