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.

TEST=unittest passes

Change-Id: I626a7493ee067997ef66311064e2b09236f539ed
Reviewed-by: Steve Fung <>
Tested-by: Mike Frysinger <>
2 files changed