diffcore-rename: refactor "too many candidates" logic
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Jan 2011 21:50:04 +0000 (13:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Mar 2011 21:29:07 +0000 (14:29 -0700)
commit9d8a5a50b7e30d85aff3deac2a6994bf0178983d
treebb2c94524e0210bab859cb846b8ba3ca14024aed
parente7c3a59c22b28002d7cab3a4a0807fdc0d2388c9
diffcore-rename: refactor "too many candidates" logic

Move the logic to a separate function, to be enhanced by later patches in
the series.

While at it, swap the condition used in the if statement from "if it is
too big then do this" to "if it would fit then do this".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---

 Rebased to 'master' as the logic to use the result of this logic was
 updated recently, together with the addition of eye-candy.
diffcore-rename.c