Re: [PATCH 06/14] packfile: express constants in terms of the_hash_algo

2018-10-09 Thread brian m. carlson
On Tue, Oct 09, 2018 at 03:34:17PM -0700, Stefan Beller wrote: > On Tue, Oct 9, 2018 at 3:25 PM brian m. carlson > wrote: > > This code is mostly here on an interim basis to let us compile with a > > fully SHA-256 (no SHA-1) Git. Once that piece is done, we can move on > > to a stage 4 Git, which

Re: [PATCH 06/14] packfile: express constants in terms of the_hash_algo

2018-10-09 Thread Stefan Beller
On Tue, Oct 9, 2018 at 3:25 PM brian m. carlson wrote: > > On Mon, Oct 08, 2018 at 03:59:36PM -0700, Stefan Beller wrote: > > On Mon, Oct 8, 2018 at 2:57 PM brian m. carlson > > wrote: > > > > > > Replace uses of GIT_SHA1_RAWSZ with references to the_hash_algo to avoid > > > dependence on a parti

Re: [PATCH 06/14] packfile: express constants in terms of the_hash_algo

2018-10-09 Thread brian m. carlson
On Mon, Oct 08, 2018 at 03:59:36PM -0700, Stefan Beller wrote: > On Mon, Oct 8, 2018 at 2:57 PM brian m. carlson > wrote: > > > > Replace uses of GIT_SHA1_RAWSZ with references to the_hash_algo to avoid > > dependence on a particular hash length. > > Unlike the previous patches, this is dealing d

Re: [PATCH 06/14] packfile: express constants in terms of the_hash_algo

2018-10-08 Thread Stefan Beller
On Mon, Oct 8, 2018 at 2:57 PM brian m. carlson wrote: > > Replace uses of GIT_SHA1_RAWSZ with references to the_hash_algo to avoid > dependence on a particular hash length. Unlike the previous patches, this is dealing directly with packfiles, which (I would think) carry their own hash function s

[PATCH 06/14] packfile: express constants in terms of the_hash_algo

2018-10-08 Thread brian m. carlson
Replace uses of GIT_SHA1_RAWSZ with references to the_hash_algo to avoid dependence on a particular hash length. Signed-off-by: brian m. carlson --- packfile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packfile.c b/packfile.c index 841b36182f..17f993b5bf 100644 ---