git-annex/Git
Joey Hess d010ab04be
sped up the --all option by 2x to 16x by using git cat-file --buffer
This assumes that no location log files will have a newline or carriage
return in their name. catObjectStream skips any such files due to
cat-file not supporting them.

Keys have been prevented from containing newlines since 2011,
commit 480495beb4. If some old repo
had a key with a newline in it, --all will just skip processing that key.
Other things, like .git/annex/unused files certianly assume no newlines in
keys too, and AFAICR, such keys never actually worked.

Carriage return is escaped by preSanitizeKeyName since 2013. WORM keys
generated before that point could perhaps contain a CR. (URL probably not,
http probably doesn't support an URL with a raw CR in it.) So, added
a warning in fsck about such keys. Although, fsck --all will naturally
skip them, so won't be able to warn about them. Not entirely
satisfactory, but I'll bet there are not really any such keys in
existence.

Thanks to Lukey for finding this optimisation.
2020-07-07 13:54:04 -04:00
..
Command update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Remote Removed support for git versions older than 2.1 2019-09-11 16:14:43 -04:00
AutoCorrect.hs all commands building except for assistant 2019-12-05 14:41:18 -04:00
Branch.hs ByteString Ref continued 2020-04-07 13:27:11 -04:00
BuildVersion.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
CatFile.hs sped up the --all option by 2x to 16x by using git cat-file --buffer 2020-07-07 13:54:04 -04:00
CheckAttr.hs Removed support for git versions older than 2.1 2019-09-11 16:14:43 -04:00
CheckIgnore.hs Removed support for git versions older than 2.1 2019-09-11 16:14:43 -04:00
Command.hs close stdin handles before waiting on commands 2020-06-05 17:27:49 -04:00
Config.hs audit all uses of SomeException to avoid catching async exceptions 2020-06-05 15:16:57 -04:00
ConfigTypes.hs support boolean git configs that are represented by the name of the setting with no value 2020-04-13 13:35:22 -04:00
Construct.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Credential.hs started converting Ref from String to ByteString 2020-04-06 17:14:49 -04:00
CurrentRepo.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
DiffTree.hs remove unused import 2020-04-08 14:04:58 -04:00
DiffTreeItem.hs ByteString Ref continued 2020-04-07 11:54:27 -04:00
Env.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
FileMode.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Filename.hs fix quickcheck failure 2019-12-30 13:54:46 -04:00
FilePath.hs ByteString Ref continued 2020-04-07 11:54:27 -04:00
Fsck.hs convert to withCreateProcess for async exception safety 2020-06-04 12:44:09 -04:00
GCrypt.hs convert to withCreateProcess for async exception safety 2020-06-03 15:48:09 -04:00
HashObject.hs started converting Ref from String to ByteString 2020-04-06 17:14:49 -04:00
History.hs convert to withCreateProcess for async exception safety 2020-06-03 15:48:09 -04:00
Hook.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Index.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
LockFile.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
LsFiles.hs annex.skipunknown with transition plan 2020-05-28 15:55:17 -04:00
LsTree.hs ByteString Ref continued 2020-04-07 11:54:27 -04:00
Merge.hs Removed support for git versions older than 2.1 2019-09-11 16:14:43 -04:00
Objects.hs ByteString Ref continued 2020-04-07 11:54:27 -04:00
Queue.hs use right handle 2020-06-05 16:38:11 -04:00
Ref.hs Ref ByteString conversion done 2020-04-07 17:41:09 -04:00
RefLog.hs ByteString Ref continued 2020-04-07 11:54:27 -04:00
Remote.hs fix runtime crash on incomplete pattern match in lambda 2020-04-13 16:03:21 -04:00
Repair.hs repair: Improve fetching from a remote with an url in host:path format. 2020-05-04 15:32:06 -04:00
Sha.hs started converting Ref from String to ByteString 2020-04-06 17:14:49 -04:00
Ssh.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Status.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Tree.hs ByteString Ref continued 2020-04-07 13:27:11 -04:00
Types.hs support boolean git configs that are represented by the name of the setting with no value 2020-04-13 13:35:22 -04:00
UnionMerge.hs fix all remaining -Wincomplete-uni-patterns warnings 2020-04-15 13:55:08 -04:00
UpdateIndex.hs convert to withCreateProcess for async exception safety 2020-06-04 12:44:09 -04:00
Url.hs lfs endpoint discovery and caching in git-lfs special remote 2019-08-02 12:38:14 -04:00
Version.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00