blob: 6c0569d074688df2dc6bd145f0fd0aa2e3b1de71 (
plain)
1
2
3
4
5
6
7
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}"' "$@"
|