Update copyright years from git history - #396
Merged
Merged
Conversation
Derive each tracked file's copyright year from its most recent commit instead of applying the current calendar year only to changed files. Traverse history once, preserve ranges, and avoid third-party copyrights. Normalize existing project headers so a subsequent CI check starts clean.
added 2 commits
August 10, 2026 10:54
Extend a single copyright year into a range when a file's latest commit is from a later year. Keep same-year headers singular and retain the starting year of existing ranges. Regenerate the normalized headers so their original years are preserved.
Provide one contributor command that formats the tree and normalizes copyright years before opening a pull request. Point CONTRIBUTING and the agent commit guidance at the shared workflow.
bneradt
added a commit
that referenced
this pull request
Aug 10, 2026
Run the history-based copyright updater in the RAT job and fail when it changes the worktree. Fetch full history so each file's most recent commit year can be determined reliably. Depends on #396.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Derive each tracked file's copyright year from its most recent
commit instead of applying the current calendar year only to changed
files. Traverse history once, preserve ranges, and avoid third-party
copyrights.
Normalize existing project headers so a subsequent CI check starts
clean.