|
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. | |
| | | | |
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 . | |
| | | | |
tarneo.fr
|
|
| | | | | Programming, Linux, self-hosting, ergo keyboards, IT ethics... | |
| | | | |
daniel-m.github.io
|
|
| | | Generalist Developer, an enthusiastic physicist that spends most of its days telling computers how to do stuff | ||