From: Pratik Karki Date: Tue, 4 Sep 2018 22:00:08 +0000 (-0700) Subject: merge-base --fork-point: extract libified function X-Git-Tag: v2.20.0-rc0~91^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/103148aad80ee7ab65b902d77d964260cfd3f6ea?hp=103148aad80ee7ab65b902d77d964260cfd3f6ea merge-base --fork-point: extract libified function We need this functionality in the builtin rebase. Note: to make this function truly reusable, we have to switch the call get_merges_many_dirty() to get_merges_many() because we want the commit flags to be reset (otherwise, subsequent get_merge_bases() calls would obtain incorrect results). This did not matter when the function was called in `git rev-parse --fork-point` because in that command, the process definitely did not traverse any commits before exiting. Signed-off-by: Pratik Karki Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano ---