diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-27 10:55:02 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-27 10:55:02 -0400 |
commit | 00361f2bf9da7bb8244445eae2bcee5487c809d1 (patch) | |
tree | 5236ede82937a35ae4e2ff94cbc1aa0619c420f6 /doc/git-annex-preferred-content.mdwn | |
parent | f684572aef9d12cf0881ce6cfc053a87579182a3 (diff) |
Support --metadata field<number, --metadata field>number etc to match ranges of numeric values.
Similarly (well, for free), support preferred content expressions like
metadata=field<number and metadata=field>number
Diffstat (limited to 'doc/git-annex-preferred-content.mdwn')
-rw-r--r-- | doc/git-annex-preferred-content.mdwn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/git-annex-preferred-content.mdwn b/doc/git-annex-preferred-content.mdwn index bea82654f..5e2a7a9c5 100644 --- a/doc/git-annex-preferred-content.mdwn +++ b/doc/git-annex-preferred-content.mdwn @@ -119,6 +119,15 @@ elsewhere to allow removing it). To match author metadata, use `metadata=author=*Smith` +* `metadata=field<number` / `metadata=field>number` +* `metadata=field<=number` / `metadata=field>=number` + + Matches only files that have a metadata field attached with a value that + is a number and is less than or greater than the specified number. + + To match PDFs with between 100 and 200 pages (assuming something has set + that metadata), use `metadata=pagecount>=100 and metadata=pagecount<=200` + * `present` Makes content be wanted if it's present, but not otherwise. |