Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jpd236 opened this issue Dec 15, 2016 · 0 comments
Open

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

jpd236 opened this issue Dec 15, 2016 · 0 comments

Comments

@jpd236
Copy link
Contributor

jpd236 commented Dec 15, 2016

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.

cushon added a commit that referenced this issue May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant