google / google/google-java-format
Feature request - make a git-aware google-java-format-diff.py
未关闭
- 主要语言
- Java
- 星标
- 6.2k
- 派生
- 937
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 3
描述
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.
贡献指南
评估
这个 Issue 还没有评估数据。