Open penja opened 3 years ago
interesting. I will look after it, but it will take some (longer) time. thank You for the bug report !
I guess that problem here https://github.com/bitranox/igittigitt/blob/master/igittigitt/igittigitt.py#L311 The value returned based first matched rule and other rules don't take into consideration
Thank you for the answer and future fix.
unfortunately You are absolutely right - and this is not the only problem. basically the handling of multiple ignore files, precedence levels and so on, is just very wrong in igittigitt. It is not that difficult to fix, but many parts needs to be plumbed together in a different way.
the documentation at https://git-scm.com/docs/gitignore#_pattern_format is not very accurate or complete - luckily I found some better explenation here :
see : struct_walker
I will put a comment in the readme about that issue in the meantime.
I'm submitting a ...
What is the current behavior? Based on gitignore specification it is not possible to re-include a file if a parent directory of that file is excluded. https://git-scm.com/docs/gitignore#_pattern_format I try to exclude specific directory based on example
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior? Based above example gitignore.match(base_path + "foo/other/tile.txt") should return True
Please tell us about your environment:
Release Number of the Repository used : 2.0.4
Python Version : 3.8.6
OS, OS Version : MacOS