aboutsummaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-02-27 15:02:38 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-02-27 15:02:44 -0400
commit5096cb295c9068ab02aa3aa1bf8eb70b2ed89ede (patch)
treeda116313c5e510e36a17001116655e95f945ea7a /Annex
parent9cce9dd3735b98c92400e10e08c2723e5bf7f118 (diff)
securehash matching
Added --securehash option to match files using a secure hash function, and corresponding securehash preferred content expression. This commit was sponsored by Ethan Aubin.
Diffstat (limited to 'Annex')
-rw-r--r--Annex/FileMatcher.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/FileMatcher.hs b/Annex/FileMatcher.hs
index 654c5a960..7a418cc48 100644
--- a/Annex/FileMatcher.hs
+++ b/Annex/FileMatcher.hs
@@ -117,6 +117,7 @@ preferredContentParser matchstandard matchgroupwanted getgroupmap configmap mu e
, SimpleToken "groupwanted" (call matchgroupwanted)
, SimpleToken "present" (simply $ limitPresent mu)
, SimpleToken "inpreferreddir" (simply $ limitInDir preferreddir)
+ , SimpleToken "securehash" (simply limitSecureHash)
, ValueToken "copies" (usev limitCopies)
, ValueToken "lackingcopies" (usev $ limitLackingCopies False)
, ValueToken "approxlackingcopies" (usev $ limitLackingCopies True)