summaryrefslogtreecommitdiff
path: root/CmdLine
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 /CmdLine
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 'CmdLine')
-rw-r--r--CmdLine/GitAnnex/Options.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/CmdLine/GitAnnex/Options.hs b/CmdLine/GitAnnex/Options.hs
index f7e0dcf07..726a6963c 100644
--- a/CmdLine/GitAnnex/Options.hs
+++ b/CmdLine/GitAnnex/Options.hs
@@ -224,6 +224,11 @@ nonWorkTreeMatchingOptions' =
<> hidden
<> completeBackends
)
+ , globalFlag Limit.addSecureHash
+ ( long "securehash"
+ <> help "match files using a cryptographically secure hash"
+ <> hidden
+ )
, globalSetter Limit.addInAllGroup $ strOption
( long "inallgroup" <> metavar paramGroup
<> help "match files present in all remotes in a group"