upload-pack: refactor ok_to_give_up()
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 20 Jul 2018 16:33:11 +0000 (16:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 22:38:54 +0000 (15:38 -0700)
commit921bf7734f11da75516bfd12da5e4fa203cc6d19
treefea49dfaa3a1c596a6ffa619e4017785b16232fd
parentf044bb49add413915d699ca9e3458071dac6c731
upload-pack: refactor ok_to_give_up()

In anticipation of consolidating all commit reachability algorithms,
refactor ok_to_give_up() in order to allow splitting its logic into
an external method.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c