convert.c: simplify text_stat
commit6e336a530b0dd98d1c751440ca5666a6999ab020
authorTorsten Bögershausen <tboegi@web.de>
Wed, 10 Feb 2016 16:24:43 +0000 (10 17:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Feb 2016 23:54:20 +0000 (10 15:54 -0800)
tree94857f177c2fe8764b4b0f6ffeb64eaa58f8ed1c
parentdf747b818f0c9b7d0db1d7e3837b78e5d48b6fde
convert.c: simplify text_stat

Simplify the statistics:
lonecr counts the CR which is not followed by a LF,
lonelf counts the LF which is not preceded by a CR,
crlf counts CRLF combinations.
This simplifies the evaluation of the statistics.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c