From 50c6c7406ba4c310e3567dc7d812330ef79098d2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 28 Oct 2013 14:50:17 -0400 Subject: 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" --- doc/preferred_content.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/preferred_content.mdwn') 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 -- cgit v1.2.3