aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-08-13 00:04:16 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-10-07 11:02:08 +0200
commit6f8813ad09cef903d4f419c1bab8a4ce48e99744 (patch)
treed1dc1de80abf9aee9d99ee51b04dd39a32c84860
parent53028774109da538cf0375b39bcd68eee6bdbb01 (diff)
downloadgosc-6f8813ad09cef903d4f419c1bab8a4ce48e99744.tar.gz
Remove leading dashes from the commit message.
-rwxr-xr-xgit-oci1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-oci b/git-oci
index e915abd..10265d7 100755
--- a/git-oci
+++ b/git-oci
@@ -6,5 +6,6 @@ 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 "$@"