1
0
Fork 0
mirror of synced 2024-06-02 15:31:09 -04:00
dotbot/dotbot/plugins
Anish Athalye 416f32f5fe Fix globbing when there is a single match
See https://github.com/anishathalye/dotbot/issues/282 and
https://github.com/anishathalye/dotbot/issues/315.

This patch simplifies the implementation, removing special-case handling
for the cases of zero matches and one match. Instead, any situation
where `glob: true` is specified and the path contains a glob character
(any of "?", "*", or "[") is treated as a glob case. The reason we check
both `use_glob` and `_has_glob_chars()` is to more gracefully handle the
case where the user has enabled globs by default, but most links do not
contain glob characters and should not be treated as globs.
2023-07-09 16:24:13 -04:00
..
__init__.py Add 'create' directive to create directories 2019-10-12 11:55:09 -04:00
clean.py Add black as tox environment, and run it 2022-05-13 10:44:29 -05:00
create.py Separate module importing from plugin identification 2022-05-13 10:44:29 -05:00
link.py Fix globbing when there is a single match 2023-07-09 16:24:13 -04:00
shell.py Resolve merge conflicts 2022-12-16 13:52:33 -06:00