aboutsummaryrefslogtreecommitdiff
path: root/capcom
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-15 22:00:43 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-15 22:04:18 +0100
commit4229736346c6909c4125ea9ee580b2ce53e34d45 (patch)
tree62909739e1573ea30eca88ba3f714f83ecbb5050 /capcom
parent457c2a2018c79da46266ec69469ae8200431941b (diff)
downloadalpine-4229736346c6909c4125ea9ee580b2ce53e34d45.tar.gz
Add 'capcom' tool
Diffstat (limited to 'capcom')
-rwxr-xr-xcapcom8
1 files changed, 8 insertions, 0 deletions
diff --git a/capcom b/capcom
new file mode 100755
index 0000000..6c0569d
--- /dev/null
+++ b/capcom
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Capitalize given commit messages
+
+[ $# -eq 0 ] && { echo "usage: $0 rev-list" 1>&2; exit 1; }
+
+FILTER_BRANCH_SQUELCH_WARNING=1 \
+git filter-branch --msg-filter 'awk -vFS= -vOFS= "NR==1{\$1=toupper(\$1); print \$0} NR>1{print}"' "$@"