Re: [PATCH v2 02/13] sha1-file: provide functions to look up hash algorithms

2018-10-17 Thread SZEDER Gábor
On Mon, Oct 15, 2018 at 02:18:49AM +, brian m. carlson wrote: > There are several ways we might refer to a hash algorithm: by name, such > as in the config file; by format ID, such as in a pack; or internally, > by a pointer to the hash_algos array. Provide functions to look up hash > algorith

[PATCH v2 02/13] sha1-file: provide functions to look up hash algorithms

2018-10-14 Thread brian m. carlson
There are several ways we might refer to a hash algorithm: by name, such as in the config file; by format ID, such as in a pack; or internally, by a pointer to the hash_algos array. Provide functions to look up hash algorithms based on these various forms and return the internal constant used for