Skip to content

Commit ece4230

Browse files
authored
README: Add link to pre-commit hook gist
1 parent 39eedc2 commit ece4230

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ pushd cs-demos && git lfs pull -I '*' && popd
147147
go test
148148
```
149149

150+
Here's a cool [gist of a pre-commit hook](https://gist.github.com/micvbang/4c8cb1f24cfe04d1a0dfab010eb851d8) to run tests before each commit. You can put this inside the `.git/hooks` directory to avoid commiting/pushing code with build errors or failing tests.
151+
150152
### Debugging
151153

152154
You can use the build tag `debugdemoinfocs` (i.e. `go test -tags debugdemoinfocs -v`) to print out debugging information - such as game events or unhandled demo-messages - during the parsing process.<br>

0 commit comments

Comments
 (0)