summaryrefslogtreecommitdiff
path: root/doc/git-annex-groupwanted.mdwn
blob: 7df2c0273adddf52659cf6d9dca0ac9aaf9ea034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# NAME

git-annex groupwanted - get or set groupwanted expression

# SYNOPSIS

git annex groupwanted `groupname [expression]`

# DESCRIPTION

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

Note that there must be exactly one groupwanted expression configured
amoung all the groups that a repository is in; if there's more than one,
none of them will be used.

# SEE ALSO

[[git-annex]](1)

[[git-annex-group]](1)

[[git-annex-wanted]](1)

[[git-annex-preferred-content]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.