annex.addunlocked expressions
authorJoey Hess <joeyh@joeyh.name>
Fri, 20 Dec 2019 19:01:34 +0000 (15:01 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 20 Dec 2019 19:56:25 +0000 (15:56 -0400)
commit37467a008f15aca723594c77b71cd26a3ad39952
treec9ee337c5f9cdba4c02f86a22881633a9838650f
parentf79bd5213248cd1f9c77189408242dc7a5f177e3
annex.addunlocked expressions

* annex.addunlocked can be set to an expression with the same format used by
  annex.largefiles, in case you want to default to unlocking some files but
  not others.
* annex.addunlocked can be configured by git-annex config.

Added a git-annex-matching-expression man page, broken out from
tips/largefiles.

A tricky consequence of this is that git-annex add --relaxed
honors annex.addunlocked, but an expression might want to know the size
or content of an url, which it's not going to download. I decided it was
better not to fail, and just dummy up some plausible data in that case.

Performance impact should be negligible. The global config is already
loaded for annex.largefiles. The expression only has to be parsed once,
and in the simple true/false case, it should not do any additional work
matching it.
25 files changed:
Annex/FileMatcher.hs
Annex/Ingest.hs
Annex/SpecialRemote.hs
CHANGELOG
Command/Add.hs
Command/AddUrl.hs
Command/Export.hs
Command/FuzzTest.hs
Command/Import.hs
Command/ImportFeed.hs
Command/MatchExpression.hs
Git/Branch.hs
Git/Config.hs
Logs/PreferredContent.hs
Remote/External.hs
Types/Difference.hs
Types/Distribution.hs
Types/GitConfig.hs
doc/git-annex-config.mdwn
doc/git-annex-matchexpression.mdwn
doc/git-annex-matching-expression.mdwn [new file with mode: 0644]
doc/git-annex.mdwn
doc/tips/largefiles.mdwn
doc/todo/addunlocked_config_setting.mdwn
doc/todo/addunlocked_config_setting/comment_4_e9c9552c4f558ada76fe1e3eecfa1627._comment [new file with mode: 0644]