close
Skip to content

Fix #2940 - Parse standard git year output in LicenseHeaderStep#2961

Open
michakuehn wants to merge 5 commits into
diffplug:mainfrom
michakuehn:2940-parse-date
Open

Fix #2940 - Parse standard git year output in LicenseHeaderStep#2961
michakuehn wants to merge 5 commits into
diffplug:mainfrom
michakuehn:2940-parse-date

Conversation

@michakuehn
Copy link
Copy Markdown

Summary

Parse standard git year output in LicenseHeaderStep when setting license header years from git history.

Changes

  • extract shared default git log arguments for year lookup
  • request year-only output from git via --format=%cd --date=format:%Y
  • trim git output before parsing
  • simplify year parsing regex

@michakuehn michakuehn marked this pull request as ready for review June 5, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant