addurl, importfeed: Changed to honor annex.largefiles settings, when the content of the url is downloaded. (Not when using --fast or --relaxed.)

importfeed just calls addurl functions, so inherits this from it.

Note that addurl still generates a temp file, and uses that key to download
the file. It just adds it to the work tree at the end when the file is small.
This commit is contained in:
Joey Hess 2015-12-02 15:12:33 -04:00
parent dc8099872a
commit f16e235983
Failed to extract signature
6 changed files with 41 additions and 21 deletions

View file

@ -801,7 +801,10 @@ Here are all the supported configuration settings.
annex.largefiles = largerthan=100kb and not (include=*.c or include=*.h)
This setting is used by `git annex add`, `git annex import` and the assistant.
This setting is checked by `git annex add`, `git annex import` and the assistant.
It's also used by `git annex addurl` and `git annex importfeed` when
downloading files.
It can be useful to temporarily override it via -c at the command line.
For example:

View file

@ -2,3 +2,5 @@ ATM git annex addurl ignores annex.largefiles option so to automate annexificat
N.B. I do understand that use-case might be somewhat vague, let me know if I should expand reasoning
[[!meta author=yoh]]
> [[done]] --[[Joey]]