From 978906c6166b025afe1c5aa078688d73617b7f1a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 18 Apr 2015 16:09:09 -0400 Subject: [PATCH] forgot to add these --- Command/Required.hs | 17 +++++++++++++++++ doc/git-annex-required.mdwn | 29 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 Command/Required.hs create mode 100644 doc/git-annex-required.mdwn diff --git a/Command/Required.hs b/Command/Required.hs new file mode 100644 index 0000000000..3d9c592796 --- /dev/null +++ b/Command/Required.hs @@ -0,0 +1,17 @@ +{- git-annex command + - + - Copyright 2015 Joey Hess + - + - Licensed under the GNU GPL version 3 or higher. + -} + +module Command.Required where + +import Command +import Logs.PreferredContent +import qualified Command.Wanted + +cmd :: [Command] +cmd = Command.Wanted.cmd' "required" "get or set required content expression" + requiredContentMapRaw + requiredContentSet diff --git a/doc/git-annex-required.mdwn b/doc/git-annex-required.mdwn new file mode 100644 index 0000000000..cde3cd6ab8 --- /dev/null +++ b/doc/git-annex-required.mdwn @@ -0,0 +1,29 @@ +# NAME + +git-annex required - get or set required content expression + +# SYNOPSIS + +git annex required `repository [expression]` + +# DESCRIPTION + +When run with an expression, configures the content that is required +to be held in the archive. See [[git-annex-preferred-content]](1) + +For example: + + git annex required . "include=*.mp3 or include=*.ogg" + +Without an expression, displays the current required content setting +of the repository. + +# SEE ALSO + +[[git-annex]](1) + +# AUTHOR + +Joey Hess + +Warning: Automatically converted into a man page by mdwn2man. Edit with care.