per-command options
Finally commands can define their own options. Moved --format and --print0 to be options only of find.
This commit is contained in:
parent
47be4383b7
commit
ad43f03626
9 changed files with 162 additions and 87 deletions
|
@ -144,9 +144,9 @@ bad_data_size = staleSize "bad keys size" gitAnnexBadDir
|
|||
|
||||
backend_usage :: Stat
|
||||
backend_usage = stat "backend usage" $ nojson $
|
||||
usage <$> cachedKeysReferenced <*> cachedKeysPresent
|
||||
calc <$> cachedKeysReferenced <*> cachedKeysPresent
|
||||
where
|
||||
usage a b = pp "" $ reverse . sort $ map swap $ splits $ S.toList $ S.union a b
|
||||
calc a b = pp "" $ reverse . sort $ map swap $ splits $ S.toList $ S.union a b
|
||||
splits :: [Key] -> [(String, Integer)]
|
||||
splits ks = M.toList $ M.fromListWith (+) $ map tcount ks
|
||||
tcount k = (keyBackendName k, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue