-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mercurial equivalent for ratchetFrom #2116
Comments
It's possible. My guess is that it would be best to parse mercurial's console output. If I was implementing it, I would do something along these lines: class MercurialRatchet {
String ratchetFrom;
public String getShaOfHead() { } // or equivalent, used for up-to-date checking
public boolean isClean(File file) { } // feel free to require more args than just this
} and it would get integrated in these two places:
|
Thanks for the response. |
We have a large Kotlin project where we use spotless.
However, it is pretty slow. I came across the ratchetFrom property but seems like it is only for Git.
How can I make spotless run on just modified files to make the build faster?
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("/*.kt", "/.kts")
targetExclude("$buildDir/**/", "/build//", "/node_modules//")
ktfmt(findProperty("cbrKtfmtVersion")!! as String)
}
}
tasks.getByName("build") {
group = "build"
dependsOn("spotlessApply")
}
The text was updated successfully, but these errors were encountered: