Re: [PATCH v1 1/4] hashmap: factor out getting an int hash code from a, SHA1

2014-07-07 Thread Junio C Hamano
Karsten Blees writes: > Copying the first bytes of a SHA1 is duplicated in six places, however, > the implications (wrong byte order on little-endian systems) is documented > only once. s/wrong /different /; but other than that I think this is a good change. > +`unsigned int sha1hash(const unsi

[PATCH v1 1/4] hashmap: factor out getting an int hash code from a, SHA1

2014-07-02 Thread Karsten Blees
Copying the first bytes of a SHA1 is duplicated in six places, however, the implications (wrong byte order on little-endian systems) is documented only once. Add a properly documented API for this. Signed-off-by: Karsten Blees --- Documentation/technical/api-hashmap.txt | 9 + builtin/