Files
bluekeyes-go-gitdiff/gitdiff
Billy Keyes 981bc4b60c Fix parsing of mode lines with trailing space (#38)
If a patch is passed through a system that converts line endings to
'\r\n', mode lines end up with trailing whitespace that confuses
strconv.ParseInt. In Git, this is avoided by using strtoul() for parsing,
which stops at the first non-digit character.

Changing line endings in patch content itself will cause other problems
so it is best to avoid this transform, but if it does happen, it
shouldn't cause a parse error.
2022-12-26 17:56:30 -05:00
..
2020-01-25 16:57:23 -08:00