git-review: add gofmt pre-commit hook

Also change getLines to not strip spaces, making it more generally
useful, and the use it more generally.

Change-Id: I0969a2bee5ec5f331fba82e5902ca9879b988fe8
Reviewed-on: https://go-review.googlesource.com/1610
Reviewed-by: Russ Cox <rsc@golang.org>
4 files changed
tree: a7f0052b20b2a855b45561b94c90a9ee318a4fa4
  1. git-review/
  2. README