]> 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:

Do not use gitignore if explicitly passing excludes (#2170)
authorKaleb Barrett <dev.ktbarrett@gmail.com>
Fri, 7 May 2021 12:54:21 +0000 (07:54 -0500)
committerGitHub <noreply@github.com>
Fri, 7 May 2021 12:54:21 +0000 (14:54 +0200)
commit1fe2efd8573a63ffc76c69320720d349b21897da
tree947202e3531b8ac826d5ff112d8fe687c30e87c8
parent4b7b5ed5b8630a906e2ef3a405134131651a251e
Do not use gitignore if explicitly passing excludes (#2170)

Closes #2164.

Changes behavior of how .gitignore is handled. With this change, the rules in .gitignore are only used as a fallback if no exclusion rule is explicitly passed on the command line or in pyproject.toml. Previously they were used regardless if explicit exclusion rules were specified, preventing any overriding of .gitignore rules.

Those that depend only on .gitignore for their exclusion rules will not be affected. Those that use both .gitignore and exclude will find that exclude will act more like actually specifying exclude and not just another extra-excludes. If the previous behavior was desired, they should move their rules from exclude to extra-excludes.
CHANGES.md
src/black/__init__.py
tests/data/include_exclude_tests/.gitignore [new file with mode: 0644]
tests/data/include_exclude_tests/pyproject.toml [new file with mode: 0644]
tests/test_black.py