We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The setup:
mine.txt
untouched.txt
ratchetFrom 'origin/main'
licenseHeader '(C) $YEAR'
(C) 2019
2020
So far so good:
main
spotlessApply
2019
spotlessCheck
The problem:
origin/main
git fetch 'origin/main'
Workarounds:
ratchetFrom 'origin/master'
ratchetFrom 'immutable-tag-like-v1.0.0'
git merge origin/main
Solution:
origin/master
The text was updated successfully, but these errors were encountered:
ratchetFrom
Released in plugin-maven 2.0.0 and plugin-gradle 4.5.0.
plugin-maven 2.0.0
plugin-gradle 4.5.0
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The setup:
mine.txt
anduntouched.txt
ratchetFrom 'origin/main'
licenseHeader '(C) $YEAR'
(C) 2019
, but today's year is now2020
So far so good:
main
mine.txt
spotlessApply
which changes the copyright header onmine.txt
from2019
to2020
, but leavesuntouched.txt
alone since you have not changed itspotlessCheck
is passingThe problem:
origin/main
which changeuntouched.txt
git fetch 'origin/main'
spotlessCheck
will fail for your local branch, even though you didn't make any changesspotlessApply
, it will update the copyright header onuntouched.txt
from 2019 to 2020Workarounds:
ratchetFrom 'origin/master'
, doratchetFrom 'immutable-tag-like-v1.0.0'
git merge origin/main
, so that you aren't duplicating changesSolution:
origin/master
, Spotless should look for the merge-base, not just a naive-diff betweenorigin/master
and the WC.The text was updated successfully, but these errors were encountered: