-
-
Notifications
You must be signed in to change notification settings - Fork 51
Option to ignore commits about move operations #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hee, that's a good one! I think we can add that by adding a diff filter "r". See It should be added here: mkdocs-git-revision-date-localized-plugin/src/mkdocs_git_revision_date_localized_plugin/util.py Line 96 in 3f39e65
And here's an example of how to add the diff filter argument, as we already use it for the creation date. mkdocs-git-revision-date-localized-plugin/src/mkdocs_git_revision_date_localized_plugin/util.py Line 86 in 3f39e65
Would appreciate a PR! |
Thank you for the leads, I'll try to open up a PR for this feature. Though I'm not really proficient with Python or pip package development environment, I'll try my best 😄 I suppose Contributing guide is where I gotta start from? Any other tips for setting it up for dev environment? Thank you |
Brave venturing into python. Two tips: 1) editable installs (pip install -e .) Perhaps you could setup two repos locally, where one had a rename in the commit history and the other doesn't. The you can verify it works. Good luck, and no worries if you get stuck. Oh and remember open source is supposed to be fun, no pressure or rush at all! |
Hi there,
I just got started with using this plugin but ran into something which might be worth considering as a future. So recently I moved all my md files into a singular folder, and committed like so, hence the last change date of all my notes are pointing to that date, which is sub optimal because it is not an actual change, just a move operation. So how about an option to disregards last commit if it is a move operation, and doesn't contain any actual changes in the file itself?
Here's an example scenario:
Just a thought: move operations can be determined if file contents are identical per hash.
This feature could come in handy, what do you think?
If it is a considerable feature, I might try to take a crack at it.
Thank you
The text was updated successfully, but these errors were encountered: