During make, I create string fields which I embedded in the linked output. Very useful.
Other than a complex sed/grep parsing of the
For git hooks, I found this command useful
git diff-index --exit-code --ignore-submodules HEAD
For example
//run some static analysis check that can change the code
something_changed=`git diff-index --exit-code --ignore-submodules HEAD`
if [ -n "$something_changed" ]
then
echo >&2 "Something changed in $local_ref, not pushing"
exit 1
fi