From fb9f6876e0e228c5c60c4b124cee32e828ae60ac Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 18:23:14 -0400 Subject: scripts/announce-release.sh: Detect renames in diffstat --- diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh index 74e915b..b35b73e 100755 --- a/scripts/announce-release.sh +++ b/scripts/announce-release.sh @@ -79,8 +79,8 @@ export GIT_DIR="${srcdir}/.git" ==================================$(printf '%s\n' "${old_version}" | \ sed 's/./=/g') - $(git diff --stat=69 --color=never "${package}/${old_version}..HEAD" | \ - sed 's/^/ /') + $(git diff --stat=69 --color=never --find-renames=50% \ + "${package}/${old_version}..HEAD" | sed 's/^/ /') -- $(: Just something to follow the trailing space) Patrick "P. J." McDermott -- cgit v0.9.1