Re: [PATCH 06/12] fast-import: switch various uses of SHA-1 to the_hash_algo

2018-01-28 Thread Patryk Obara
On 28/01/2018 16:57, brian m. carlson wrote: - if (last && last->data.buf && last->depth < max_depth && dat->len > 20) { + if (last && last->data.buf && last->depth < max_depth && dat->len > the_hash_algo->rawsz) { At this point line is almost 100 characters long - maybe it's time

[PATCH 06/12] fast-import: switch various uses of SHA-1 to the_hash_algo

2018-01-28 Thread brian m. carlson
Switch various uses of explicit calls to SHA-1 to use the_hash_algo. Convert various uses of 20 and the GIT_SHA1 constants as well. Signed-off-by: brian m. carlson --- fast-import.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/fas