Re: [PATCH v2] commit.c: use the generic "sha1_pos" function for lookup

2014-02-27 Thread Junio C Hamano
"Dmitry S. Dolzhenko" writes: > Refactor binary search in "commit_graft_pos" function: use > generic "sha1_pos" function. > > Signed-off-by: Dmitry S. Dolzhenko > --- Looks trivially correct; thanks. Looking at this patch makes me wonder why we have sha1_pos() and sha1_entry_pos() helper funct

[PATCH v2] commit.c: use the generic "sha1_pos" function for lookup

2014-02-26 Thread Dmitry S. Dolzhenko
Refactor binary search in "commit_graft_pos" function: use generic "sha1_pos" function. Signed-off-by: Dmitry S. Dolzhenko --- commit.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/commit.c b/commit.c index 6bf4fe0..6ceee6a 100644 --- a/commit.c +