|
You are here |
vlad.website | ||
| | | | |
osc.garden
|
|
| | | | | In order to keep the 'Last updated' field of posts always accurate, I automated its modification with a custom Git pre-commit hook. | |
| | | | |
codeinthehole.com
|
|
| | | | | Yet another git tips article | |
| | | | |
hjr265.me
|
|
| | | | | Git has this great feature that I think is well-known but under-used. I am talking about Git hooks. With Git hooks, you can run scripts during different Git actions. Like this one: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #!/bin/sh GOFILES=`git diff --name-only --cached | grep -e '.go$' | grep -ve 'vendor/'` UNFMTFILES=() for f in $GOFILES; do if [ -n "`gofmt -l -s . | |
| | | | |
owensd.io
|
|
| | | I mentioned that I was working on personal project in C the other day. One of the things that I wanted to do was to have unit tests for the parts that made sense. I briefly looked at some C unit testing frameworks... but really, this doesn't need to be that hard. I personally like... | ||