edsrzf/gofmt-git-hook — pull request #2 by sethwklein (2013-01-31 20:05:10+00:00)
Title: Remind users to run git add

It is confusing to run gofmt -w as instructed only to get the exact same
error when retrying the commit because you forgot to add the changes
gofmt made to the commit. This change avoids that confusion.

Running exactly "git add" will give an error message reminding you to
tell it what to add. Since we don't know what that is (it could be a
patch fragment), we can't include it in our message so this is fine.