bitranox / igittigitt

A spec-compliant gitignore parser for Python
MIT License
24 stars 6 forks source link

revert `IgnoreParser._parse_rule_file` to `parse_rule_file` as documented #25

Closed ITProKyle closed 2 years ago

ITProKyle commented 2 years ago

Bug fix

resolves #22

This is something that tripped me up when first using this library as the documented method does not exist. I would rather have the method changed back to a public method than updating the docs to remove the reference as being able to add a gitignore file that is known to exist is more efficient than having it recursively search directories to find it (again).

A method with signature IgnoreParser.parse_rule_file(self, rule_file: PathLikeOrString) -> None. In addition to reverting the name change of the method, the base_dir was removed as it is not used by the method.

Yes but the breaking change is to a protected method so a major release should not be required. Users will just need to change the name of the method being called from _parse_rule_file to parse_rule_file.

bitranox commented 2 years ago

since my toolchain is broken atm, release will be done later ... thanks for Your contribution !

bitranox commented 2 years ago

released and put on pypi - thanks again for Your valuable contribution !