HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
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.
- Loading branch information...