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

Implemention of ratchetFrom for plugin-gradle #590

Merged
merged 11 commits into from
Jun 1, 2020
Merged

Conversation

nedtwigg
Copy link
Member

This PR allows users to say ratchetFrom 'origin/master', and formatting will then be applied only on files which have changed since 'origin/master`, as per the spec in #511.

I believe there is probably a big performance enhancement to be had by caching this:

// TODO: should be cached-per-repo if it is thread-safe, or per-repo-per-thread if it is not
DirCache dirCache = repo.readDirCache();

but probably best to ship the simplest correct thing first, and we can always optimize it in the future.

This one adds almost no public API besides the already agreed-upon spec in #511. I would love feedback on the implementation, but since it doesn't affect public API, there's not much to lose by shipping it as-is. So just because it's merged doesn't mean it isn't still open for discussion :)

@nedtwigg nedtwigg merged commit fd5ab33 into master Jun 1, 2020
nedtwigg added a commit that referenced this pull request Jun 1, 2020
@nedtwigg nedtwigg deleted the feat/ratchet branch June 1, 2020 21:48
@nedtwigg
Copy link
Member Author

nedtwigg commented Jun 1, 2020

Released in plugin-gradle 4.1.0.

@nedtwigg nedtwigg mentioned this pull request Jun 5, 2020
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