git-annex/Remote
Joey Hess ecf7f34c23
remember sha256 and size when necessary
Using Logs.RemoteState for this means that if the same key gets uploaded
twice to a git-lfs remote, but somehow has different content the two
times (eg it's an URL key with non-stable content), the sha256/size of
the newer content uploaded will overwrite what was remembered before. That
seems ok; it just means that git-annex will request the newer version of
the content when downloading from git-lfs.

It will remember the sha256 and size if both are not known, or if only
the sha256 is not known but the size is known, it only remembers the
sha256, to avoid wasting space on the size. I did not add special case
for when the sha256 is known and the size is not, because it's been a
long time since git-annex created SHA256 keys without a size.
(See doc/upgrades/SHA_size.mdwn)
2019-08-05 11:05:59 -04:00
..
Directory update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
External make everything build again after ByteString Key changes 2019-01-11 16:39:46 -04:00
Helper make metered more generic 2019-06-25 12:33:36 -04:00
Rsync avoid rsync/gcrypt ssh startup delay with -J 2019-06-13 11:16:38 -04:00
WebDAV update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Adb.hs fix storeExportWithContentIdentifier 2019-04-09 19:15:20 -04:00
BitTorrent.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Bup.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Ddar.hs Corrected some license statements 2019-07-28 14:27:33 -04:00
Directory.hs improve docs about removeExportDirectory 2019-05-28 11:16:01 -04:00
External.hs better indicate when special remotes do not support renameExport 2019-03-11 12:53:24 -04:00
GCrypt.hs avoid rsync/gcrypt ssh startup delay with -J 2019-06-13 11:16:38 -04:00
Git.hs skeleton git-lfs special remote 2019-08-01 15:30:12 -04:00
GitLFS.hs remember sha256 and size when necessary 2019-08-05 11:05:59 -04:00
Glacier.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Hook.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
List.hs skeleton git-lfs special remote 2019-08-01 15:30:12 -04:00
P2P.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Rsync.hs avoid rsync/gcrypt ssh startup delay with -J 2019-06-13 11:16:38 -04:00
S3.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00
Tahoe.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Web.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
WebDAV.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00