Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / utils / git / arcfilter.sh
blobcf6215c93334294a17ad8051adc65506c22c5229
1 #!/bin/sh
3 # Remove the phabricator tags from the commit at HEAD
4 git 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 -