mirror of
https://github.com/RPCS3/rpcs3
synced 2024-11-05 16:05:48 +00:00
10 lines
292 B
Bash
10 lines
292 B
Bash
#!/bin/bash
|
|
|
|
# git pre-commit hook that run git-clang-format when committing.
|
|
# To use it install clang-format and python 2.7 then copy this
|
|
# file to .git/hooks/ and remove the extension
|
|
|
|
git clang-format --style=file --diff > style.patch
|
|
git apply --index style.patch
|
|
rm style.patch
|
|
exit 0
|