google / google/google-java-format

Feature request - make a git-aware google-java-format-diff.py

Abierto
#107 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
6.2k
Forks
937
Merge medio
6 min
PR fusionados (30 d)
3

Descripción

google-java-format-diff.py is generic in that it takes any diff and formats it.

This is certainly useful, but it means that every user who also uses git has to write a wrapper to run "git diff" appropriately and pass in that input. This makes automating formatting in a repository a bit more work.

It would be nice if there were a more git-aware variant that took in commits and/or files directly. For example, clang-format has an official git-clang-format hook (https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format) which provides very tight integration with git when running clang-format.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.