blob: 1ae4480333c28d00b46498463df10b78a01ca302 [file] [log] [blame]
# Global `repo upload` hook settings.
# https://android.googlesource.com/platform/tools/repohooks
[Options]
ignore_merged_commits = true
[Builtin Hooks]
pylint3 = true
cpplint = true
clang_format = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
[Hook Scripts]
yapf-diff = ${REPO_ROOT}/scripts/preupload-hooks/yapf-diff.sh ${PREUPLOAD_COMMIT}
# Add the following line to a project-local config file to bypass yapf-diff:
# yapf-diff = ${REPO_ROOT}/scripts/preupload-hooks/yapf-diff.sh --bypass