aboutsummaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-07-27 10:46:25 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-07-27 10:46:25 -0400
commitd87485c2b532ad2d52aa1829a1b30e3519d2cbb1 (patch)
tree24ae6d6ef4a807c81534ba56c7fcb9e7c2a6ba28 /Annex
parent2cb464a0e641254aa28a788587b089022922577a (diff)
Added metadata --batch option, which allows getting, setting, deleting, and modifying metadata for multiple files/keys.
Diffstat (limited to 'Annex')
-rw-r--r--Annex/MetaData.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/MetaData.hs b/Annex/MetaData.hs
index d8d8177c4..6642c3615 100644
--- a/Annex/MetaData.hs
+++ b/Annex/MetaData.hs
@@ -63,7 +63,7 @@ parseModMeta p = case lastMaybe f of
Just '+' -> AddMeta <$> mkMetaField f' <*> v
Just '-' -> DelMeta <$> mkMetaField f' <*> (Just <$> v)
Just '?' -> MaybeSetMeta <$> mkMetaField f' <*> v
- _ -> SetMeta <$> mkMetaField f <*> v
+ _ -> SetMeta <$> mkMetaField f <*> (S.singleton <$> v)
where
(f, sv) = separate (== '=') p
f' = beginning f