Add --include, which is the same as --not --exclude.

This commit is contained in:
Joey Hess 2011-12-22 13:53:06 -04:00
parent 30cf6ce81c
commit 6bffe509d7
6 changed files with 28 additions and 10 deletions

View file

@ -524,6 +524,7 @@ test_find = "git-annex find" ~: intmpclonerepo $ do
annexed_notpresent sha1annexedfile
git_annex_expectoutput "find" [] [annexedfile]
git_annex_expectoutput "find" ["--exclude", annexedfile, "--and", "--exclude", sha1annexedfile] []
git_annex_expectoutput "find" ["--include", annexedfile] [annexedfile]
git_annex_expectoutput "find" ["--not", "--in", "origin"] []
git_annex_expectoutput "find" ["--copies", "1", "--and", "--not", "--copies", "2"] [sha1annexedfile]
git_annex_expectoutput "find" ["--inbackend", "SHA1"] [sha1annexedfile]