prevent-foxtrot: format file

This commit is contained in:
Alfred Melch 2021-08-26 12:30:24 +02:00
parent ec59721459
commit cde7d73594

View File

@ -29,9 +29,8 @@ do
# Should appear once as a parent
# awk: print the second word
# The second word is the first parent. Third word would be second parent, ...
MATCH=`git log --first-parent --pretty='%H %P' $oldrev..$newrev |
grep $oldrev |
awk '{ print $2 }'`
MATCH=`git log --first-parent --pretty='%H %P' $oldrev..$newrev | grep $oldrev | awk '{ print $2 }'`
# First parent should be the oldrev
if [ "$oldrev" = "$MATCH" ]; then
exit 0