Commit graph

2 commits

Author SHA1 Message Date
Elliott Hughes
dc6c706003 Add AOSP preupload hook.
Test: repo upload in internal master
Change-Id: I98d7e9e51ca2f2a03ea1223f6749007e5b3f9b9f
2020-04-23 11:02:00 -07:00
Bowgo Tsai
1aeb8d2107 Add a PREUPLOAD.cfg file to run git-clang-format on every commit
The style file .clang-format is copied from adb/.clang-format.
Each sub folders still can have different style by adding their own
.clang-format because git-clang-format uses the style file located
in one of the parent directories of the *source file*.

Also see the following link for previous discussions:

  https://android-review.googlesource.com/#/c/340106

Bug: 36046320
Test: repo upload, checks pre-submit fails when the uploading commit
      doesn't meet the style

Change-Id: I94369af197da1ccce581bbd861c8737f6a197429
2017-03-08 16:51:26 +08:00