ANDROID: drm_hwcomposer: Add pre-push hook

Add a pre-push hook to detect commits that are prefixed with ANDROID:,
and prevent them from being pushed to a potentially public remote.

Add a script to install the pre-push hook.

Add a PREUPLOAD hook that checks that the pre-push hook has been
installed. Since this hook needs to be installed manually, the PREUPLOAD
hook will remind contributors to install the next time they attempt to
`repo upload`.

Test: `git push -n $gitlab-remote`
Test: `git push -n aosp`
Test: repo upload
Bug: 371583224

Change-Id: I4a07c2938417e5983b66ce67e375c8fced5a4007
4 files changed
tree: de1d9eec8a5f4dbefda0a809dfa3d309bf94eeb3
  1. .ci/
  2. backend/
  3. bufferinfo/
  4. compositor/
  5. drm/
  6. hooks/
  7. hwc2_device/
  8. hwc3/
  9. tests/
  10. utils/
  11. .clang-format
  12. .clang-tidy
  13. .gitlab-ci.yml
  14. Android.bp
  15. Makefile
  16. meson.build
  17. METADATA
  18. MODULE_LICENSE_APACHE2
  19. NOTICE
  20. OWNERS
  21. PREUPLOAD.cfg
  22. README.md
README.md

drm_hwcomposer

Patches to drm_hwcomposer are very much welcome, we really want this to be the universal HW composer implementation for Android and similar platforms. So please bring on porting patches, bugfixes, improvements for documentation and new features.

A short list of contribution guidelines:

  • Submit changes via gitlab merge requests on gitlab.freedesktop.org.

  • drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the developer's certificate of origin: http://developercertificate.org/.

  • When submitting new code please follow the naming conventions documented in the generated documentation. Also please make full use of all the helpers and convenience macros provided by drm_hwcomposer. The below command can help you with formatting of your patches:

    git diff | clang-format-diff-15 -p 1 -style=file
    
  • Hardware specific changes should be tested on relevant platforms before committing.

If you need inspiration, please checkout our TODO issues.

Happy hacking!