Cosium / git-code-format-maven-plugin

A maven plugin that automatically deploys code formatters as pre-commit git hook
MIT License
203 stars 39 forks source link

Plugin can produce empty commits and committed files show up as modified in git status #96

Open pfeileon opened 1 year ago

pfeileon commented 1 year ago

What steps will reproduce the problem?

  1. Make changes to a file's formatting which conflict with google-code-formatter.
  2. Commit the changes.

Expected

Actual

The part with the modified files without changes showing up also happens after a "real" commit. git add . cleans it up again.

Environment: git-code-format-maven-plugin 4.2 Apache Maven 3.8.6 Java version: 11.0.14 (Red Hat) Windows 10 git version 2.38.0.windows.1

mjuergens-cg commented 3 months ago

See https://github.com/Cosium/git-code-format-maven-plugin/issues/227

RafaelMRG commented 3 months ago

Anyone managed to fix this issue ? i am pretty much running almost the same setup as described and get the same git behavior