summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-02-06 15:12:42 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-02-06 15:12:42 -0400
commitfaa6b2cdd7e62e221ccda3890fd1da32713cec8f (patch)
tree0587650ccdb863797e0d32aba93b19249109fbf0 /doc/git-annex.mdwn
parenta33ccc14c09d51a1604b34a175e7938d37f29abf (diff)
groupwanted: New command to set the groupwanted preferred content expression.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 80dce0ddc..ca987b4e2 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -504,6 +504,21 @@ subdirectories).
Without an expression, displays the current preferred content setting
of the repository.
+* `groupwanted groupname [expression]`
+
+ Sets or displays the groupwanted expression. This will be used by
+ repositories that are in the group, and that have their preferred
+ content expression set to "groupwanted".
+
+ For example, to configure a group named redundantarchive, and
+ make repositories in the group want to contain 3 copies of every file:
+
+ git annex groupwanted redundantarchive "not (copies=redundantarchive:3)"
+ for repo in foo bar baz; do
+ git annex group $repo redundantarchive
+ git annex wanted $repo groupwanted
+ done
+
* `schedule repository [expression]`
When run with an expression, configures scheduled jobs to run at a
@@ -1375,7 +1390,9 @@ no equivilant to `--in`.
When a repository is in one of the standard predefined groups, like "backup"
and "client", setting its preferred content to "standard" will use a
-built-in preferred content expression developed for that group.
+built-in preferred content expression developed for that group. Or,
+setting its preferred content to "groupwanted" will make it use whatever
+groupwanted expression you set for the group.
# SCHEDULED JOBS