jcrocholl/pep8 — pull request #127 by encukou (2012-10-01 20:44:42+00:00)
Title: Allow one-line hunks in --diff

In Git diff, hunks containing only one line in either the original
or modified file do not have the number of lines specified.
Without this patch, pep8 crashes on a diff with such a hunk.

For example, this would fail in pep8's repository:
git show 6ff543b -U0 | pep8 --diff

The -U0 option is useful to only check new code, not anything that
surrounds it. The bug can also appear without -U0 in one-line files.