diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-04-18 16:09:09 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-04-18 16:09:09 -0400 |
commit | b1db25514340de8b034ab3e8ebbe0c01fb9f2d1f (patch) | |
tree | 95eb49c99d07703677517792e505d2c861384e94 | |
parent | dc46e86aadc4f17efdaccd8f56f886546b486b9c (diff) |
forgot to add these
-rw-r--r-- | Command/Required.hs | 17 | ||||
-rw-r--r-- | doc/git-annex-required.mdwn | 29 |
2 files changed, 46 insertions, 0 deletions
diff --git a/Command/Required.hs b/Command/Required.hs new file mode 100644 index 000000000..3d9c59279 --- /dev/null +++ b/Command/Required.hs @@ -0,0 +1,17 @@ +{- git-annex command + - + - Copyright 2015 Joey Hess <id@joeyh.name> + - + - 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 000000000..cde3cd6ab --- /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 <id@joeyh.name> + +Warning: Automatically converted into a man page by mdwn2man. Edit with care. |