import: Added --no-content option, which avoids downloading files from a special remote

Only supported by some special remotes: directory
I need to check the rest and they're currently missing methods until I do.

git-annex sync --no-content does not yet use this to do imports
This commit is contained in:
Joey Hess 2020-07-03 13:41:57 -04:00
parent a8099b9896
commit 85506a7015
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
12 changed files with 204 additions and 60 deletions

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="joey"
subject="""comment 7"""
date="2020-07-03T16:27:10Z"
content="""
Hmm, --fast is not very descriptive for this when it's used with a
directory special remote, because hashing is almost as slow as copying.
Probably better to use --no-content and --content, same as sync.
(Though unfortunately with an opposite default though iirc there are plans
somewhere to transition sync to default to --content).
"""]]

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="joey"
subject="""comment 8"""
date="2020-07-03T17:39:19Z"
content="""
Note that, since exporttree remotes are always untrusted, after importing
--no-content from one, fsck is going to complain about it being the only
location with the content.
Which seems right.. That content could be overwritten at any time and the
only copy lost. But still worth keeping in mind.
"""]]