Windows - LF/CRLF?

As suggested in step 5 of this part of the Developer Guide, I added * text eol=lf to .gitattributes of a freshly made branch. I then committed that change:

Erik@LaptopRik2021 MINGW64 /c/openHAB-dev/openhab-main/git/openhab-addons (4.3.x)
$ git switch -c 4.3.x-shelly_blu_cycle_fix
Switched to a new branch '4.3.x-shelly_blu_cycle_fix'

Erik@LaptopRik2021 MINGW64 /c/openHAB-dev/openhab-main/git/openhab-addons (4.3.x-shelly_blu_cycle_fix)
$ git status
On branch 4.3.x-shelly_blu_cycle_fix
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   .gitattributes

no changes added to commit (use "git add" and/or "git commit -a")

Erik@LaptopRik2021 MINGW64 /c/openHAB-dev/openhab-main/git/openhab-addons (4.3.x-shelly_blu_cycle_fix)
$ git add .
warning: in the working copy of '.gitattributes', CRLF will be replaced by LF the next time Git touches it

Erik@LaptopRik2021 MINGW64 /c/openHAB-dev/openhab-main/git/openhab-addons (4.3.x-shelly_blu_cycle_fix)
$ git commit -m "EOL=LF"
[4.3.x-shelly_blu_cycle_fix ba8d24b8ff] EOL=LF
 1 file changed, 1 insertion(+)

I then made a change to bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/ShellyBluApi.java, and ran git status:

Erik@LaptopRik2021 MINGW64 /c/openHAB-dev/openhab-main/git/openhab-addons (4.3.x-shelly_blu_cycle_fix)
$ git status
On branch 4.3.x-shelly_blu_cycle_fix
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/ShellyBluApi.java

no changes added to commit (use "git add" and/or "git commit -a")

I then ran mvn spotless:apply, and a lot of files were “cleaned”:

C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly>mvn spotless:apply
[INFO] Scanning for projects...
[INFO]
[INFO] -------< org.openhab.addons.bundles:org.openhab.binding.shelly >--------
[INFO] Building openHAB Add-ons :: Bundles :: Shelly Binding 4.3.5-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- spotless:2.43.0:apply (default-cli) @ org.openhab.binding.shelly ---
[INFO] Index file does not exist. Fallback to an empty index
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\addon\addon.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\config\config.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\config\config2.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\config\configblu.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\device.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyBlu.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyGen1_lights.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyGen1_relay.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyGen1_sensor.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyGen2_lights.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyGen2_relay.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\shellyGen2_sensor.xml
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\resources\OH-INF\thing\unknown.xml
[INFO] Spotless.Format is keeping 13 files clean - 13 were changed to be clean, 0 were already clean, 0 were skipped because caching determined they were already clean
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\feature\feature.xml
[INFO] Spotless.Format is keeping 1 files clean - 1 were changed to be clean, 0 were already clean, 0 were skipped because caching determined they were already clean
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\pom.xml
[INFO] Spotless.Format is keeping 1 files clean - 1 were changed to be clean, 0 were already clean, 0 were skipped because caching determined they were already clean
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api\ShellyApiException.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api\ShellyApiInterface.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api\ShellyApiResult.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api\ShellyDeviceProfile.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api\ShellyEventServlet.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api\ShellyHttpClient.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1ApiJsonDTO.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoapHandler.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoapJSonDTO.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoapListener.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoapServer.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoIoTInterface.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoIoTProtocol.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoIoTVersion1.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1CoIoTVersion2.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api1\Shelly1HttpApi.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api2\Shelly2ApiClient.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api2\Shelly2ApiJsonDTO.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api2\Shelly2ApiRpc.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api2\Shelly2RpcSocket.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api2\Shelly2RpctInterface.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\api2\ShellyBluApi.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\config\ShellyBindingConfiguration.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\config\ShellyThingConfiguration.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\discovery\ShellyBasicDiscoveryService.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\discovery\ShellyDiscoveryParticipant.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\discovery\ShellyThingCreator.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyBaseHandler.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyBluSensorHandler.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyColorUtils.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyComponents.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyDeviceListener.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyDeviceStats.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyLightHandler.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyManagerInterface.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyProtectedHandler.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyRelayHandler.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyThingInterface.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\handler\ShellyThingTable.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManager.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerActionPage.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerCache.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerConstants.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerImageLoader.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerOtaPage.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerOverviewPage.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerPage.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\manager\ShellyManagerServlet.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\provider\ShellyChannelDefinitions.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\provider\ShellyStateDescriptionProvider.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\provider\ShellyTranslationProvider.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\ShellyBindingConstants.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\ShellyHandlerFactory.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\util\ShellyChannelCache.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\util\ShellyUtils.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\main\java\org\openhab\binding\shelly\internal\util\ShellyVersionDTO.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\test\java\org\openhab\binding\shelly\internal\api\ShellyDeviceProfileTest.java
[INFO] Writing clean file: C:\openHAB-dev\openhab-main\git\openhab-addons\bundles\org.openhab.binding.shelly\src\test\java\org\openhab\binding\shelly\internal\discovery\ShellyThingCreatorTest.java
[INFO] Spotless.Java is keeping 58 files clean - 58 were changed to be clean, 0 were already clean, 0 were skipped because caching determined they were already clean
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.441 s
[INFO] Finished at: 2025-04-01T18:28:07+02:00
[INFO] ------------------------------------------------------------------------

I then ran git status again, and (not surprisingly), now a lot of files would have to be committed:

Erik@LaptopRik2021 MINGW64 /c/openHAB-dev/openhab-main/git/openhab-addons (4.3.x-shelly_blu_cycle_fix)
$ git status
On branch 4.3.x-shelly_blu_cycle_fix
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   bundles/org.openhab.binding.shelly/pom.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/feature/feature.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/ShellyBindingConstants.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/ShellyHandlerFactory.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyApiException.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyApiInterface.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyApiResult.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyDeviceProfile.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyEventServlet.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyHttpClient.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoIoTInterface.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoIoTProtocol.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoIoTVersion1.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoIoTVersion2.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoapHandler.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoapJSonDTO.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoapListener.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1CoapServer.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1HttpApi.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiClient.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiJsonDTO.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2ApiRpc.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2RpcSocket.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/Shelly2RpctInterface.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2/ShellyBluApi.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/config/ShellyBindingConfiguration.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/config/ShellyThingConfiguration.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyBasicDiscoveryService.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyDiscoveryParticipant.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/discovery/ShellyThingCreator.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBaseHandler.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBluSensorHandler.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyColorUtils.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyComponents.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyDeviceListener.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyDeviceStats.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyLightHandler.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyManagerInterface.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyProtectedHandler.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyRelayHandler.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyThingInterface.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyThingTable.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManager.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerActionPage.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerCache.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerConstants.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerImageLoader.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerOtaPage.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerOverviewPage.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerPage.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerServlet.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyChannelDefinitions.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyStateDescriptionProvider.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/provider/ShellyTranslationProvider.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/util/ShellyChannelCache.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/util/ShellyUtils.java
        modified:   bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/util/ShellyVersionDTO.java
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/addon/addon.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/config/config.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/config/config2.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/config/configblu.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/device.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyBlu.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyGen1_lights.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyGen1_relay.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyGen1_sensor.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyGen2_lights.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyGen2_relay.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/shellyGen2_sensor.xml
        modified:   bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/thing/unknown.xml
        modified:   bundles/org.openhab.binding.shelly/src/test/java/org/openhab/binding/shelly/internal/api/ShellyDeviceProfileTest.java
        modified:   bundles/org.openhab.binding.shelly/src/test/java/org/openhab/binding/shelly/internal/discovery/ShellyThingCreatorTest.java

no changes added to commit (use "git add" and/or "git commit -a")

Am I misunderstanding something? Are the instructions about * text eol=lf no longer valid? (There’s also this (possibly outdated) discussion.) Surely the files in the main repository are not “unclean”?

Here I read something about git config --global core.autocrlf false and git config --global core.eol crlf. I should have done this digging before creating this post, but I’ll give this a go asap. (I do wonder why it’s not git config --global core.eol lf. That makes more sense for my human brain…)

I want to actually suggest a PR, so I’m trying to understand how this all works.

So thanks to anyone who can shed light!

I tried with both possibilities, but both times, mvn spotless:apply changed 58 files…

Maybe I should have rebooted my Windows machine, or something… I now tried everything again (with the idea of figuring out what exactly mvn spotless:apply changed), and only pom.xml was cleaned - because of a different format violation.

It seems that

git config --global core.autocrlf false
git config --global core.eol lf

did the trick, and it is unnecessary to put * text eol=lf in .gitattributes. But I’m far from an expert, so that conclusion might be wrong.

Anyway, for me the case seems closed.