Update of text stats calculation

Do not interpret 0x85 as Next Line (NEL)
char when gathering statistics for a text file.
This commit is contained in:
Jameson Miller 2012-11-01 12:11:24 -04:00
parent 7ae73e94db
commit c902f5a0ff

View File

@ -33,10 +33,6 @@ void git_text_gather_stats(git_text_stats *stats, const git_buf *text)
else if (c == '\n') else if (c == '\n')
stats->lf++; stats->lf++;
else if (c == 0x85)
/* Unicode CR+LF */
stats->crlf++;
else if (c == 127) else if (c == 127)
/* DEL */ /* DEL */
stats->nonprintable++; stats->nonprintable++;