-
-
Save xla/e689d5de0982543cce8c to your computer and use it in GitHub Desktop.
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/sh | |
for file in $(git diff --cached --name-status | awk '{print $2}') | |
do | |
gofmt -w $file | |
git add $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment