commit | 039dc71a7cb824300e242f8abc0fcb19dac93641 | [log] [tgz] |
---|---|---|
author | Karsten Blees <karsten.blees@gmail.com> | Thu Jul 03 00:20:20 2014 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Jul 07 13:56:24 2014 -0700 |
tree | 9c38bb8655e0314cfe122b7355922c2413533825 | |
parent | 6f92e5ff3cdc813de8ef5327fd4bad492fb7d6c9 [diff] |
hashmap: factor out getting a hash code from a SHA1 Copying the first bytes of a SHA1 is duplicated in six places, however, the implications (the actual value would depend on the endianness of the platform) is documented only once. Add a properly documented API for this. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>