Man page - git-annex-matching-expression(1)
Packages contas this manual
- git-annex-dropunused(1)
- git-annex-log(1)
- git-annex-groupwanted(1)
- git-annex-findcomputed(1)
- git-annex-enable-tor(1)
- git-annex-addcomputed(1)
- git-annex-info(1)
- git-annex-recompute(1)
- git-annex-lock(1)
- git-annex-fuzztest(1)
- git-annex-checkpresentkey(1)
- git-annex-fromkey(1)
- git-annex-filter-branch(1)
- git-annex-unlock(1)
- git-annex-find(1)
- git-annex-reregisterurl(1)
- git-annex-required(1)
- git-annex-readpresentkey(1)
- git-annex-initcluster(1)
- git-annex-vicfg(1)
- git-annex-mincopies(1)
- git-annex-fix(1)
- git-annex-initremote(1)
- git-annex-preferred-content(1)
- git-annex-mirror(1)
- git-annex-satisfy(1)
- git-annex-pull(1)
- git-annex-move(1)
- git-annex-matching-expression(1)
- git-annex-remotedaemon(1)
- git-annex-findkeys(1)
- git-annex-updatecluster(1)
- git-annex-restage(1)
- git-annex-registerurl(1)
- git-annex-unused(1)
- git-annex-proxy(1)
- git-annex-transferkeys(1)
- git-annex-matchexpression(1)
- git-annex-expire(1)
- git-annex-pre-commit(1)
- git-annex-whereis(1)
- git-annex-reinit(1)
- git-annex-merge(1)
- git-annex-metadata(1)
- git-annex-unannex(1)
- git-annex-version(1)
- git-annex-wanted(1)
- git-annex-vfilter(1)
- git-annex-list(1)
- git-annex-diffdriver(1)
- git-annex-forget(1)
- git-annex-lookupkey(1)
- git-annex-p2phttp(1)
- git-annex-config(1)
- git-annex-view(1)
- git-annex-edit(1)
- git-annex-filter-process(1)
- git-annex-repair(1)
- git-remote-tor-annex(1)
- git-annex-map(1)
- git-annex-status(1)
- git-annex-watch(1)
- git-annex-schedule(1)
- git-annex-adjust(1)
- git-annex-unregisterurl(1)
- git-remote-annex(1)
- git-annex-p2p(1)
- git-annex-reinject(1)
- git-annex-dead(1)
- git-annex-direct(1)
- git-annex-semitrust(1)
- git-annex-assist(1)
- git-annex-setkey(1)
- git-annex-push(1)
- git-annex-setpresentkey(1)
- git-annex-testremote(1)
- git-annex(1)
- git-annex-assistant(1)
- git-annex-copy(1)
- git-annex-importfeed(1)
- git-annex-vpop(1)
- git-annex-addurl(1)
- git-annex-dropkey(1)
- git-annex-updateproxy(1)
- git-annex-upgrade(1)
- git-annex-shell(1)
- git-annex-backends(1)
- git-annex-sim(1)
- git-annex-get(1)
- git-annex-benchmark(1)
- git-annex-export(1)
- git-annex-post-receive(1)
- git-annex-resolvemerge(1)
- git-annex-trust(1)
- git-annex-fsck(1)
- git-annex-transferrer(1)
- git-annex-migrate(1)
- git-annex-maxsize(1)
- git-annex-drop(1)
- git-annex-rekey(1)
- git-annex-matching-options(1)
- git-annex-calckey(1)
- git-annex-webapp(1)
- git-annex-examinekey(1)
- git-annex-inprogress(1)
- git-annex-findref(1)
- git-annex-undo(1)
- git-annex-indirect(1)
- git-annex-untrust(1)
- git-annex-extendcluster(1)
- git-annex-vcycle(1)
- git-annex-common-options(1)
- git-annex-contentlocation(1)
- git-annex-addunused(1)
- git-annex-smudge(1)
- git-annex-add(1)
- git-annex-enableremote(1)
- git-annex-uninit(1)
- git-annex-renameremote(1)
- git-annex-multicast(1)
- git-annex-import(1)
- git-annex-rmurl(1)
- git-annex-ungroup(1)
- git-annex-group(1)
- git-annex-numcopies(1)
- git-annex-sync(1)
- git-annex-describe(1)
- git-annex-configremote(1)
- git-annex-test(1)
- git-annex-transferkey(1)
- git-annex-init(1)
- git-annex-whereused(1)
- git-annex-vadd(1)
- git-annex-oldkeys(1)
- git-annex-dropunused(1)
- git-annex-log(1)
- git-annex-groupwanted(1)
- git-annex-findcomputed(1)
- git-annex-enable-tor(1)
- git-annex-addcomputed(1)
- git-annex-info(1)
- git-annex-recompute(1)
- git-annex-lock(1)
- git-annex-fuzztest(1)
- git-annex-checkpresentkey(1)
- git-annex-fromkey(1)
- git-annex-filter-branch(1)
- git-annex-unlock(1)
- git-annex-find(1)
- git-annex-reregisterurl(1)
- git-annex-required(1)
- git-annex-readpresentkey(1)
- git-annex-initcluster(1)
- git-annex-vicfg(1)
- git-annex-mincopies(1)
- git-annex-fix(1)
- git-annex-initremote(1)
- git-annex-preferred-content(1)
- git-annex-mirror(1)
- git-annex-satisfy(1)
- git-annex-pull(1)
- git-annex-move(1)
- git-annex-matching-expression(1)
- git-annex-remotedaemon(1)
- git-annex-findkeys(1)
- git-annex-updatecluster(1)
- git-annex-restage(1)
- git-annex-registerurl(1)
- git-remote-p2p-annex(1)
- git-annex-unused(1)
- git-annex-proxy(1)
- git-annex-transferkeys(1)
- git-annex-matchexpression(1)
- git-annex-expire(1)
- git-annex-pre-commit(1)
- git-annex-whereis(1)
- git-annex-reinit(1)
- git-annex-merge(1)
- git-annex-metadata(1)
- git-annex-unannex(1)
- git-annex-version(1)
- git-annex-wanted(1)
- git-annex-vfilter(1)
- git-annex-list(1)
- git-annex-diffdriver(1)
- git-annex-forget(1)
- git-annex-lookupkey(1)
- git-annex-p2phttp(1)
- git-annex-config(1)
- git-annex-view(1)
- git-annex-edit(1)
- git-annex-filter-process(1)
- git-annex-repair(1)
- git-remote-tor-annex(1)
- git-annex-map(1)
- git-annex-status(1)
- git-annex-watch(1)
- git-annex-schedule(1)
- git-annex-adjust(1)
- git-annex-unregisterurl(1)
- git-remote-annex(1)
- git-annex-p2p(1)
- git-annex-reinject(1)
- git-annex-dead(1)
- git-annex-direct(1)
- git-annex-semitrust(1)
- git-annex-assist(1)
- git-annex-setkey(1)
- git-annex-push(1)
- git-annex-setpresentkey(1)
- git-annex-testremote(1)
- git-annex(1)
- git-annex-assistant(1)
- git-annex-copy(1)
- git-annex-importfeed(1)
- git-annex-vpop(1)
- git-annex-addurl(1)
- git-annex-dropkey(1)
- git-annex-updateproxy(1)
- git-annex-upgrade(1)
- git-annex-shell(1)
- git-annex-backends(1)
- git-annex-sim(1)
- git-annex-get(1)
- git-annex-benchmark(1)
- git-annex-export(1)
- git-annex-post-receive(1)
- git-annex-resolvemerge(1)
- git-annex-trust(1)
- git-annex-fsck(1)
- git-annex-transferrer(1)
- git-annex-migrate(1)
- git-annex-maxsize(1)
- git-annex-drop(1)
- git-annex-rekey(1)
- git-annex-matching-options(1)
- git-annex-calckey(1)
- git-annex-webapp(1)
- git-annex-examinekey(1)
- git-annex-inprogress(1)
- git-annex-findref(1)
- git-annex-undo(1)
- git-annex-indirect(1)
- git-annex-untrust(1)
- git-annex-extendcluster(1)
- git-annex-vcycle(1)
- git-annex-common-options(1)
- git-annex-contentlocation(1)
- git-annex-addunused(1)
- git-annex-smudge(1)
- git-annex-add(1)
- git-annex-enableremote(1)
- git-annex-uninit(1)
- git-annex-renameremote(1)
- git-annex-multicast(1)
- git-annex-import(1)
- git-annex-rmurl(1)
- git-annex-ungroup(1)
- git-annex-group(1)
- git-annex-numcopies(1)
- git-annex-sync(1)
- git-annex-describe(1)
- git-annex-configremote(1)
- git-annex-test(1)
- git-annex-transferkey(1)
- git-annex-init(1)
- git-annex-whereused(1)
- git-annex-vadd(1)
- git-annex-oldkeys(1)
Package: git-annex
apt-get install git-annex
apt-get install git-annex
Manuals in package:
Documentations in package:
Package: git-annex-standalone
apt-get install git-annex-standalone
apt-get install git-annex-standalone
Manuals in package:
Documentations in package:
Manual
| git-annex-matching-expression(1) | General Commands Manual | git-annex-matching-expression(1) |
NAME
git-annex-matching-expression - specifying a set of files
DESCRIPTION
The annex.largefiles and annex.addunlocked configurations both use expressions that match some files in the working tree.
SYNTAX
The format of these expressions is similar to git-annex-preferred-content(1) expressions.
For example:
largerthan=100kb and not (include=*.c or include=*.h)
This matches large files, but excludes C source files.
The following terms can be used:
- include=glob / exclude=glob
- Specify files to include or exclude.
- The glob can contain * and ? to match arbitrary characters.
- Note that this matches on the whole filename, relative to the top of the git directory. So, include=foo will include a file foo in the top, but not subdir/foo. To include both, use include=foo or include=*/foo
- smallerthan=size / largerthan=size
- Matches only files smaller than, or larger than the specified size.
- The size can be specified with any commonly used units, for example, "0.5 gb" or "100 KiloBytes"
- mimetype=glob
- Looks up the MIME type of a file, and checks if the glob matches it.
- For example, "mimetype=text/*" will match many varieties of text files, including "text/plain", but also "text/x-shellscript", "text/x-makefile", etc.
- The MIME types are the same that are displayed by running file --mime-type
- This only matches when the content of the file is present in the local repository. Usually that is the case, but eg, when importing from a special remote with --no-content, the content is usually not present.
- This is only available to use when git-annex was built with the MagicMime build flag.
- mimeencoding=glob
- Looks up the MIME encoding of a file, and checks if the glob matches it.
- For example, "mimeencoding=binary" will match many kinds of binary files.
- The MIME encodings are the same that are displayed by running file --mime-encoding
- This only matches when the content of the file is present in the local repository. Usually that is the case, but eg, when importing from a special remote with --no-content, the content is usually not present.
- This is only available to use when git-annex was built with the MagicMime build flag.
- anything
- Matches any file.
- nothing
- Matches no files. (Same as "not anything")
- not expression
- Inverts what the expression matches.
- and / or / ( expression )
- These can be used to build up more complicated expressions.
SEE ALSO
git-annex(1)
AUTHOR
Joey Hess <id@joeyh.name>
<http://git-annex.branchable.com/>