From 4229736346c6909c4125ea9ee580b2ce53e34d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 15 Nov 2020 22:00:43 +0100 Subject: Add 'capcom' tool --- capcom | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 capcom 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}"' "$@" -- cgit v1.2.3