summaryrefslogtreecommitdiff
path: root/doc/preferred_content.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-28 14:50:17 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-28 14:50:17 -0400
commit50c6c7406ba4c310e3567dc7d812330ef79098d2 (patch)
tree925449e6e9382646834b75968e4d3b0b2014dd06 /doc/preferred_content.mdwn
parenta86cd4bc8215f01ffe2ba06c63be56656d8ae7cf (diff)
add --want-get and --want-drop options
New --want-get and --want-drop options which can be used to test preferred content settings. For example, "git annex find --in . --want-drop"
Diffstat (limited to 'doc/preferred_content.mdwn')
-rw-r--r--doc/preferred_content.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/preferred_content.mdwn b/doc/preferred_content.mdwn
index 0f284c4c1..6a5364f67 100644
--- a/doc/preferred_content.mdwn
+++ b/doc/preferred_content.mdwn
@@ -84,6 +84,16 @@ The name of the directory can be configured using
(If no directory name is configured, it uses "public" by default.)
+## testing preferred content settings
+
+To check at the command line which files are matched by preferred content
+settings, you can use the --want-get and --want-drop options.
+
+For example, "git annex find --want-get --not --in ." will find all the
+files that "git annex get --auto" will want to get, and "git annex find
+--want-drop --in ." will find all the files that "git annex drop --auto"
+will want to drop.
+
## standard expressions
git-annex comes with some standard preferred content expressions, that can