summaryrefslogtreecommitdiff
path: root/system/tools/scripts/yapf_checker.py
diff options
context:
space:
mode:
Diffstat (limited to 'system/tools/scripts/yapf_checker.py')
-rwxr-xr-xsystem/tools/scripts/yapf_checker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/tools/scripts/yapf_checker.py b/system/tools/scripts/yapf_checker.py
index 86f1f39632..f6dd2c9d25 100755
--- a/system/tools/scripts/yapf_checker.py
+++ b/system/tools/scripts/yapf_checker.py
@@ -23,7 +23,9 @@ PYTHONPATH_KEY = 'PYTHONPATH'
COMMIT_ID_ENV_KEY = 'PREUPLOAD_COMMIT'
ANDROID_BUILD_TOP_KEY = 'ANDROID_BUILD_TOP'
DEFAULT_YAPF_DIR = 'external/yapf'
-GIT_COMMAND = ['git', 'diff-tree', '--no-commit-id', '--name-only']
+GIT_COMMAND = [
+ 'git', 'diff-tree', '--no-commit-id', '--name-only', '--diff-filter=d'
+]
def main():