Skip to content
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

Re-Implement behaviour of --dynamic-years flag #7

Merged
merged 4 commits into from
Dec 18, 2023
Merged

Conversation

thomasmarwitz
Copy link
Owner

The feature --dynamic-years is re-implemented s.t. the end year is determined by

  1. GIT (last modification date, but only increments the year, e.g. we do not decrement a year that is already if the file has been modified the last time a year before)
  2. FILE (trust the date already present)
  3. CURRENT_YEAR (only if no date is already present in the file & the file is not tracked by GIT).

The previous behaviour of --dynamic-years regarding start_year remains intact.

s.t. the end year is determined by
1. GIT (last modification date, but only increments the year, e.g. we do not decrement a year that is already
        if the file has been modified the last time a year before)
2. FILE (trust the date already present)
3. CURRENT_YEAR (only if no date is already present in the file & the file is not tracked by GIT).
@thomasmarwitz thomasmarwitz changed the title Re-Implement feature dynamic_years Re-Implement behaviour of --dynamic-years flag Dec 18, 2023
@thomasmarwitz thomasmarwitz merged commit 57e3833 into main Dec 18, 2023
12 checks passed
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