The (Petty) Reason We Didn't End Up Using jj

Jujutsu (jj) has been picking up steam as a Git-compatible version control system.


This is a companion discussion topic for the original entry at https://blog.gradle.org/the-petty-reason-we-didnt-end-up-using-jj-at-gradle

If you’ve found a clean way to run jj against a Gradle repo without the CRLF churn, we’d love to hear about it.

The easiest is probably to simply not use gradlew.bat, for example by using Linux as OS, or by calling it from Bash.
The Git Bash you most probably have available when using Git on windows even can handle gradlew with CRLF line endings which normal Bash cannot.
Or if it does have LF line endings, you can also easily call it through WSL.

For people not using Bash as their normal shell, this might be a work-around, but is maybe an acceptable price for using JJ on Windows until the FR in JJ gets implement.

For me this never was a problem as I always use Bash as shell, even on Windows. Pre-Git-Bash from Cygwin, but since Git-Bash simply the one that ships with that one.