style: Don't include diff context in git style hook
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 28 Apr 2016 14:17:28 +0000 (15:17 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 28 Apr 2016 14:17:28 +0000 (15:17 +0100)
commitf8c6ff1d1bc2b92463ddead537bfb73a92ad68a7
tree20dc3374f45453b20ac519dec56a39a2899b23f7
parentb80f568bcf6d709314b8cc453630d721a9ba2d8a
style: Don't include diff context in git style hook

The git style hook currently includes a few lines of diff context when
determining changed regions. This is undesirable as this triggers
false positives when modifying existing files with a lot of style
violations. This change sets the amount of context to 0, which is the
default value when requesting staged regions from the git helper.

Change-Id: Ibe03123e329ea0241281e104183a68d6c495b190
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nathanael Premillieu <nathanael.premillieu@arm.com>
util/git-pre-commit.py