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

set -eux

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 "$@"