use --no-abbrev instead of --abbrev=40
authorJoey Hess <joeyh@joeyh.name>
Tue, 7 Jan 2020 16:29:37 +0000 (12:29 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 7 Jan 2020 16:29:37 +0000 (12:29 -0400)
commit6db4aee7df8f8fb92a870268b8bb60d02e332df2
treea53d81999dc3f5b06d0d47d6d8e86dff24aa49ed
parent5e4deb362093e014f6468e3e1c6879d4771853e6
use --no-abbrev instead of --abbrev=40

This avoids hardcoding the sha size, so when git uses sha256, it will
output the full sha256 and not a truncation to 40 characters.

I reviewed git's history, and while there have been some
bugs with commands not supporting --no-abbrev (eg git diff --no-index
--no-abbrev was broken in git 2.1), none of the commands git-annex
uses will be impacted by those old bugs.
Command/Log.hs
Database/Keys.hs
Git/DiffTree.hs