Re: [PATCH 09/41] pack-objects: abstract away hash algorithm

2018-05-01 Thread Duy Nguyen
On Mon, Apr 23, 2018 at 11:39:19PM +, brian m. carlson wrote: > @@ -1850,7 +1852,7 @@ static int try_delta(struct unpacked *trg, struct > unpacked *src, > /* Now some size filtering heuristics. */ > trg_size = trg_entry->size; > if (!trg_entry->delta) { > -

[PATCH 09/41] pack-objects: abstract away hash algorithm

2018-04-23 Thread brian m. carlson
Instead of using hard-coded instances of the constant 20, use the_hash_algo to look up the correct constant. Signed-off-by: brian m. carlson --- builtin/pack-objects.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff