Check the result of formatting the code

The old format-code.sh script used to run git diff to determine if any
files had been reformatted in the commit.  The "new" way should do the
same.

Tested:
Ran a build on entity-manager, which includes a custom format-code
script, and saw the build pass.  Backed up to the commit prior, which
included formatting violations, reran and saw the build fail.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I3697da5dbbe78bb2241bb66d2583b2c9c2f9e753
1 file changed