.githooks/
commit-msg
913 B
pre-commit
357 B
compiler/
kernel/
lib/
scripts/
seed/
sublime/
test/
vim/
.gitignore
333 B
.gitsigners
224 B
AGENTS.md
8.3 KiB
CONTRIBUTING
2.1 KiB
LICENSE
1.1 KiB
Makefile
2.5 KiB
README
3.4 KiB
STYLE
3.2 KiB
std.lib
2.1 KiB
std.lib.test
1.1 KiB
.githooks/pre-commit
raw
| 1 | #!/bin/sh |
| 2 | # Rejects a commit that has whitespace errors, or that stages a Radiance |
| 3 | # source outside the test fixtures that is not in the canonical style (see |
| 4 | # scripts/check-fmt). The staged content is checked, not the working tree. |
| 5 | |
| 6 | top=$(git rev-parse --show-toplevel) || exit 1 |
| 7 | |
| 8 | git diff --cached --check || exit 1 |
| 9 | exec "$top/scripts/check-fmt" --staged |