From: Anders Kaseorg Date: Mon, 21 Sep 2009 02:01:07 +0000 (-0400) Subject: zephyr-post-receive: Detect renames. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/7f3e83eb49926fd6bf2d60ee2a9642640e5b8b0b zephyr-post-receive: Detect renames. Signed-off-by: Anders Kaseorg --- diff --git a/git-hooks/zephyr-post-receive b/git-hooks/zephyr-post-receive index bd06fe4..0dfa83b 100755 --- a/git-hooks/zephyr-post-receive +++ b/git-hooks/zephyr-post-receive @@ -33,7 +33,7 @@ while read oldrev newrev refname; do fi git rev-list --first-parent --reverse "$oldrev..$newrev" | while read rev; do shortrev=`git log -1 --pretty=format:%h "$rev"` - (git show --stat $usecolor "$rev" | + (git show --stat -M $usecolor "$rev" | sed -e 's/@/@@/g' \ -e 's/}/@(})/g' \ -e 's/\[m/}@{/g' \