google / google/google-java-format

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

未关闭
#107 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。