mkdocs-git-revision-date-localized-plugin icon indicating copy to clipboard operation
mkdocs-git-revision-date-localized-plugin copied to clipboard

Add ignored commits feature

Open allanlw opened this issue 2 years ago • 2 comments

This addresses #113 by adding a new option "ignored_commits_file" that points to a file to contain commit hashes in the same format as blame.ignoreRevsFile that will be ignored during calculation of the most recent update. To the best of my knowledge, it is not possible to ask git log to ignore commits, so this must be done by the plugin.

I've added a basic unit test for the file parser, and an integration test to validate the commit ignoring behavior.

I've tested this on my own repository and verified that it behaves as expected.

pyflakes shows no new issues. pytest shows no changed lines without coverage.

allanlw avatar Apr 07 '23 05:04 allanlw

Thanks! Well done on figuring this one out. Too bad we couldn't find something more elegant with using git internals like what is possible for git log.

I have some comments, and there are some failing unit tests. Please have a look :)

timvink avatar Apr 12 '23 19:04 timvink

I believe that the tests failed because of this codecov issue: https://about.codecov.io/blog/message-regarding-the-pypi-package/

Could you please re-run them? Then I can address any test failures along with the refactoring you requested all at once.

allanlw avatar Apr 19 '23 13:04 allanlw