diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-28 17:17:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-28 17:17:02 -0400 |
commit | aa4f91b2d67b9f7827b02acebfbf4e67ba33bb80 (patch) | |
tree | b81d1dea5915cc6aad1b9d0efc911fc1b9bbbe9a /CmdLine.hs | |
parent | 6c58a58393a1d6d2257cb9e72e534387561943d7 (diff) |
Add trust and untrust subcommands, to allow configuring remotes that are trusted to retain files without explicit checking.
Diffstat (limited to 'CmdLine.hs')
-rw-r--r-- | CmdLine.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CmdLine.hs b/CmdLine.hs index cb164a6ab..7eab0a7e2 100644 --- a/CmdLine.hs +++ b/CmdLine.hs @@ -34,6 +34,8 @@ import qualified Command.Lock import qualified Command.PreCommit import qualified Command.Find import qualified Command.Uninit +import qualified Command.Trust +import qualified Command.Untrust subCmds :: [SubCommand] subCmds = @@ -61,6 +63,10 @@ subCmds = "de-initialize git-annex and clean out repository" , SubCommand "pre-commit" path Command.PreCommit.seek "run by git pre-commit hook" + , SubCommand "trust" remote Command.Trust.seek + "trust a repository" + , SubCommand "untrust" remote Command.Untrust.seek + "do not trust a repository" , SubCommand "fromkey" key Command.FromKey.seek "adds a file using a specific key" , SubCommand "dropkey" key Command.DropKey.seek @@ -84,6 +90,7 @@ subCmds = key = "KEY ..." desc = "DESCRIPTION" number = "NUMBER ..." + remote = "REMOTE ..." nothing = "" -- Each dashed command-line option results in generation of an action |