precommit: Optimise to avoid calling git-check-attr more than once.
This commit is contained in:
parent
1f9ce9e9a5
commit
92e5d28ca8
5 changed files with 29 additions and 26 deletions
|
@ -34,7 +34,7 @@ start pair@(file, _) = notAnnexed file $ do
|
|||
showStart "add" file
|
||||
return $ Just $ perform pair
|
||||
|
||||
perform :: (FilePath, Maybe Backend) -> SubCmdPerform
|
||||
perform :: BackendFile -> SubCmdPerform
|
||||
perform (file, backend) = do
|
||||
stored <- Backend.storeFileKey file backend
|
||||
case stored of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue