pre-upload: improve KEYWORDS detection

The current code uses git diff which doesn't work with new files.
Since the majority of the tree is converted now, let's start forcing
people to update things even when they don't really touch KEYWORDS.

BUG=chromium:307180
TEST=unittest passes

Change-Id: I626a7493ee067997ef66311064e2b09236f539ed
Reviewed-on: https://chromium-review.googlesource.com/217025
Reviewed-by: Steve Fung <stevefung@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 files changed