aboutsummaryrefslogtreecommitdiffstats
path: root/git-oci
blob: 28052a0bc2f53422c7bd2dcc6db223cee86cd64c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -eu

git add -A .
git diff --no-color HEAD -- *.changes \
    |sed -E -n -e '/^\+[^+]/s/^\+//p' \
    |sed -e '/^-\{4,\}/,+1d' \
         -e 's/^- *//' \
    |git commit -F -
git commit --amend -v "$@"