author | Junio C Hamano <gitster@pobox.com> | |
Thu, 6 Jan 2011 21:50:04 +0000 (13:50 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 22 Mar 2011 21:29:07 +0000 (14:29 -0700) | ||
commit | 9d8a5a50b7e30d85aff3deac2a6994bf0178983d | |
tree | bb2c94524e0210bab859cb846b8ba3ca14024aed | tree | snapshot |
parent | e7c3a59c22b28002d7cab3a4a0807fdc0d2388c9 | commit | diff |
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.
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 | diff | blob | history |