]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Indicate that a final newline was added in --diff (#1897) (#1897)
authorPaul "TBBle" Hampson <Paul.Hampson@Pobox.com>
Mon, 22 Feb 2021 06:43:23 +0000 (17:43 +1100)
committerGitHub <noreply@github.com>
Mon, 22 Feb 2021 06:43:23 +0000 (22:43 -0800)
commitcd4295dd9888f491cfd9aae060d7832b7f831b24
tree4c979cb96444e622778e3fbc37005cac73123cad
parent0cbe19c813559d6642e71832242264ab8d5a5d59
Indicate that a final newline was added in --diff (#1897) (#1897)

Fixes: #1662
Work-around for https://bugs.python.org/issue2142

The test has to slightly mess with its input data, because the utility
functions default to ensuring the test data has a final newline, which
defeats the point of the test.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
CHANGES.md
docs/authors.md
src/black/__init__.py
tests/data/missing_final_newline.diff [new file with mode: 0644]
tests/data/missing_final_newline.py [new file with mode: 0644]
tests/test_black.py