emacs.d/.githooks/post-merge

14 lines
292 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
job="$(git diff-tree -r --name-only --no-commit-id HEAD^ HEAD README.org)"
if [ -n "$job" ]; then
emacs --batch --eval "(require 'org)" --eval "(org-babel-tangle-file \"$job\")"
fi
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# sh-basic-offset: 2
# End: