I'm talking about using #OpenBSD #vmm for bsd.network, and for my bgp tutorials, at #bhyvecon in about 20 minutes
live stream is at http://bhyvecon.org/
git hook for dynamic commit message
Say you want the current branch-name in your commits:
$ ed .git/hooks/prepare-commit-msg
a
#!/bin/sh
# get the current branch-name
BR="$( git rev-parse --abbrev-ref HEAD )"
# create a temp-file
TF="$( mktemp git.XXXXX )"
echo "[$BR] Short commit message" > "$TF"
echo >> "$TF"
cat "$1" >> "$TF"
mv "$TF" "$1"
.
w
!chmod +x %
q
Then when your $EDITOR opens, the commit message has your dynamic modifications already in place.
Programming, proofs & privacy.