aboutsummaryrefslogtreecommitdiffhomepage
path: root/hooks/pre-commit
AgeCommit message (Collapse)Author
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2018-03-26pre-commit: Change comment from citra to yuzuN00byKing
2017-02-17hook: remove clang-format checkwwylele
2016-10-27hooks: convert pre-commit to POSIX syntaxJan Beich
2016-10-20Fix typosRicardo de Almeida Gonzaga
2016-09-18Git hook: Remove trailing semicolons wrecking vim’s syntax highlighting.Emmanuel Gil Peyrot
2016-09-18Git hook: Import Dolphin’s clang-format hook.Emmanuel Gil Peyrot
2015-08-31Only check src/ directory for whitespace errors in the pre-commit hookYuri Kunde Schlesner
This allows importing of external libraries into externals/ without having to reformat them. Unfortunately it also allows whitespace to be introduced in files like the root CMakeLists.txt, but that is a small downside compared to the tradeoff.
2015-07-14Fix permissions in pre-commit hookJSFernandes
2015-06-14enforce config from hookLectem
2015-06-09force no-tab/trailing spaces with git hookLectem
Remove unneeded stuff from pre-commit script The check against an empty commit was not needed (it is only a security for the 1st commit after git init). It could also possibly pose problems because of the redirection to /dev/null on some windows systems. newline at EOF & fixed indent