diff options
author | John Keeping <john@keeping.me.uk> | 2013-02-03 14:37:11 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-03 13:47:43 -0800 |
commit | afcb6ac83d8854f8cc271bb4e933836c9d4f1d3b (patch) | |
tree | 766574ff9ac7b39150a4d1a088e0f2f972768e5e /t/t4007-rename-3.sh | |
parent | Git 1.7.12.4 (diff) | |
download | tgif-afcb6ac83d8854f8cc271bb4e933836c9d4f1d3b.tar.xz |
builtin/apply: tighten (dis)similarity index parsing
This was prompted by an incorrect warning issued by clang [1], and a
suggestion by Linus to restrict the range to check for values greater
than INT_MAX since these will give bogus output after casting to int.
In fact the (dis)similarity index is a percentage, so reject values
greater than 100.
[1] http://article.gmane.org/gmane.comp.version-control.git/213857
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4007-rename-3.sh')
0 files changed, 0 insertions, 0 deletions