1 2 3 4 5 6 7 8
#!/bin/sh set -eux git diff --no-color HEAD -- *.changes \ |sed -E -n -e '/^\+[^+]/s/^\+//p' \ |sed -e '/^-\{4,\}/,+1d' \ |git commit -F - "$@"