This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Auto format changed java files using google-java-format. | |
# To install, copy this file into $repo/.git/hooks and remove the .sh extension. | |
# Download the google-java-format JAR from | |
# https://github.com/google/google-java-format | |
# A more mature implementation of this would be a plugin for Yelp's pre-commit library: | |
# http://pre-commit.com/ | |
echo "Running auto-formatter for any changed Java files" | |
echo "(formatting changes will be automatically added to your commit)" |