]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rev-list.c
bisect: change calling-convention of `find_bisection()`
authorMartin Ågren <martin.agren@gmail.com>
Sun, 5 Nov 2017 20:24:28 +0000 (21:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Nov 2017 01:15:29 +0000 (10:15 +0900)
commit24d707f636f01d41f708a010f255dd46a8fce08c
treedc3b548317d58c6b073b7a5e847a6d6c9a992a93
parentcb5918aa0d50f50e83787f65c2ddc3dcb10159fe
bisect: change calling-convention of `find_bisection()`

This function takes a commit list and returns a commit list. The
returned list is built by modifying the original list. Thus the caller
should not use the original list again (and after the next commit fixes
a memory leak, it must not).

Change the function signature so that it takes a **list and has void
return type. That should make it harder to misuse this function.

While we're here, document this function.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
bisect.h
builtin/rev-list.c