Ignore items by extension handles files/directories with no extension poorly
What steps will reproduce the problem?
- Select multiple files, including a file without extensions (such as a directory).
- Choose 'Add to ignore list', then chose 'Ignore X items by extension'.
What is the expected output? What do you see instead?
I expect selected directories or files without extensions to either be added by name or skipped.
Instead, .gitignore entries for the selected file extensions are added as expected, but a troubling entry is added for the selected directory or file without an extension, in which all files are set to ignore with the .gitignore entry of simply:
What version of TortoiseGit and Git are you using? On what operating system?
- TortoiseGit 18.104.22.168
- git version 2.20.1.windows.1
- Windows 10 Pro
Please provide any additional information below.
I noticed this by selecting a directory with several files with extensions, but I suspect including a file with no extension would behave similarly.
I'd expect the files/directories without extensions to be added by name, despite the chosen extension option, but this may be debatable.