support sha256 git repos
authorJoey Hess <joeyh@joeyh.name>
Tue, 7 Jan 2020 15:35:17 +0000 (11:35 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 7 Jan 2020 16:22:19 +0000 (12:22 -0400)
commit5e4deb362093e014f6468e3e1c6879d4771853e6
tree72e1fde5823f76cd4b788a769ddf65b668d61220
parentb5fc1b97f7aa74b414a7081196de20f984076699
support sha256 git repos

Git will eventually switch to sha2 and there will not be one single
shaSize anymore, but two (40 and 64).

Changed all parsers for git plumbing output to support both sizes of
shas.

One potential problem this does not deal with is, if somewhere in
git-annex it reads two shas from different sources, and compares them
to see if they're the same sha, it would fail if they're sha1 and sha256
of the same value. I don't know if that will really be a concern.
15 files changed:
Annex/AdjustedBranch.hs
Annex/View.hs
CHANGELOG
Command/Export.hs
Command/Undo.hs
Command/Unused.hs
Database/Export.hs
Git/CatFile.hs
Git/DiffTree.hs
Git/DiffTreeItem.hs
Git/LsFiles.hs
Git/LsTree.hs
Git/Sha.hs
Git/UnionMerge.hs
Git/UpdateIndex.hs