xref: /netbsd-src/external/apache2/llvm/dist/llvm/utils/git/arcfilter.sh (revision 82d56013d7b633d116a93943de88e08335357a7c)
1#!/bin/sh
2
3# Remove the phabricator tags from the commit at HEAD
4git log -1 --pretty=%B | \
5  sed  's/^Summary://'  | \
6  awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | \
7  git commit --amend --date=now -F -
8