+git-annex (10.20230803) UNRELEASED; urgency=medium
+
+ * Fix behavior of onlyingroup.
+
+ -- Joey Hess <id@joeyh.name> Mon, 07 Aug 2023 13:04:13 -0400
+
git-annex (10.20230802) upstream; urgency=medium
* satisfy: New command that gets/sends/drops content to satisfy
present <- S.fromList <$> Remote.keyLocations key
return $ S.null $ want `S.difference` present
-{- Skip files that are only present in repositories that are not in the
- - group. -}
+{- Skip files unless they are present in at least one repository that is in
+ - the specified group, and are not present in any repositories that are not
+ - in the specified group. -}
addOnlyInGroup :: String -> Annex ()
addOnlyInGroup groupname = addLimit $ limitOnlyInGroup groupMap groupname
check notpresent want key = do
locs <- S.fromList <$> Remote.keyLocations key
let present = locs `S.difference` notpresent
- return $ not $ S.null $ present `S.intersection` want
+ return $ not (S.null $ present `S.intersection` want)
+ && S.null (S.filter (`S.notMember` want) present)
{- Adds a limit to skip files not using a specified key-value backend. -}
addInBackend :: String -> Annex ()