|
You are here |
osc.garden | ||
| | | | |
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 . | |
| | | | |
sitr.us
|
|
| | | | | This is an excerpt of a post that I wrote for Olio Apps. I am always interested in making my coding process faster and more robust. I want to be confident that my code will work as expected. And I want to spend as little time as possible debugging, testing, and hunting down pieces of code that I forgot to update when I make changes to a project. That is why I am a fan of correct-by-construction methods. Those are methods of constructing programs where the program will not build / compile unless it behave... | |
| | | | |
codeinthehole.com
|
|
| | | | | Yet another git tips article | |
| | | | |
lfaidata.foundation
|
|
| | | |||