summaryrefslogtreecommitdiff
path: root/llvm/utils/git/arcfilter.sh
blob: cf6215c93334294a17ad8051adc65506c22c5229 (plain)
1
2
3
4
5
6
7
#!/bin/sh

# Remove the phabricator tags from the commit at HEAD
git log -1 --pretty=%B | \
  sed  's/^Summary://'  | \
  awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | \
  git commit --amend --date=now -F -