1[Builtin Hooks] 2clang_format = true 3 4[Builtin Hooks Options] 5# Only turn on clang-format check for the following subfolders. 6clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp 7 libs/binder/ndk/ 8 libs/graphicsenv/ 9 libs/gui/ 10 libs/renderengine/ 11 libs/ui/ 12 libs/vr/ 13 services/bufferhub/ 14 services/surfaceflinger/ 15 services/vr/ 16 17[Hook Scripts] 18owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$" 19installd_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/installd/" 20dumpstate_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/dumpstate/" 21dumpsys_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/dumpsys/" 22# bugreports matches both cmds/bugreport and cmds/bugreportz 23bugreports_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/bugreport" 24