Local commits on main: never touch the version number
-
When committing directly on main in a local clone, never edit the Version: or Date: field in DESCRIPTION, nor line 1 of NEWS.md, and do not add a version prefix to the commit message. The git hooks in .github/prehooks/ do this on every commit to main: pre-commit sets the version (commit count since the last tag + 9001) and date in DESCRIPTION and line 1 of NEWS.md, and commit-msg prepends (vX.Y.Z.9NNN) to the commit message. Adding NEWS bullets is still allowed. The section below applies only to PRs.
+
When committing directly on main in a local clone, never edit the Version: or Date: field in DESCRIPTION, nor line 1 of NEWS.md, and do not add a version prefix to the commit message. The git hooks in .github/prehooks/ do this on every commit to main: pre-commit sets the version (the number of commits since the last tag before the new commit, + 9001) and date in DESCRIPTION and line 1 of NEWS.md, and commit-msg prepends (vX.Y.Z.9NNN) to the commit message. Adding NEWS bullets is still allowed. The section below applies only to PRs.