Re: [PATCH v2 09/14] bisect.c: use commit-slab for commit weight instead of commit->util

2018-05-14 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > - p->item->util = [n++]; > + *commit_weight_at(_weight, p->item) = [n++]; Interesting to see that this cleverness was inherited from the original code that used the util field :-). I was wondering why the code was using

[PATCH v2 09/14] bisect.c: use commit-slab for commit weight instead of commit->util

2018-05-12 Thread Nguyễn Thái Ngọc Duy
It's done so that commit->util can be removed. See more explanation in the commit that removes commit->util. Signed-off-by: Nguyễn Thái Ngọc Duy --- bisect.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bisect.c b/bisect.c index