phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
181 stars 21 forks source link

Check for local changes before tagging #74

Closed weierophinney closed 4 years ago

weierophinney commented 4 years ago

This patch adds the CheckTreeForChangesListener, which checks to see if we have a clean local checkout before attempting to tag. If not, it will report the issue to the user.

Users may pass a new option, --force to version:tag in order to bypass this behavior.

See #60 for original request.