From: tomdhunt Date: Sat, 16 Jul 2022 20:12:20 +0000 (+0000) Subject: Added a comment: Hashes for files added via addurl X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~72^2~31^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aa3ef581c672f798998d86283a9c90d7b1348bd3;p=git-annex.git Added a comment: Hashes for files added via addurl --- diff --git a/doc/git-annex-addurl/comment_11_a09a85bbabc112369ab661b7ac5f277d._comment b/doc/git-annex-addurl/comment_11_a09a85bbabc112369ab661b7ac5f277d._comment new file mode 100644 index 0000000000..5916786001 --- /dev/null +++ b/doc/git-annex-addurl/comment_11_a09a85bbabc112369ab661b7ac5f277d._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="tomdhunt" + avatar="http://cdn.libravatar.org/avatar/02694633d0fb05bb89f025cf779218a3" + subject="Hashes for files added via addurl" + date="2022-07-16T20:12:20Z" + content=""" +If you add a file to your repo first via `addurl --fast`, it writes the filename as a symlink to a file that incorporates the URL, rather than the file hash. This is expected, since git-annex can't know the file hash until it's actually downloaded the file. + +If you then `git annex get` that file, it downloads the file to the path that uses the URL. Is the hash ever recorded for these files? If you were to drop and re-download the file, would git-annex accept a different file? +"""]]