Skip to content

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.

2 participants