From 7f3e83eb49926fd6bf2d60ee2a9642640e5b8b0b Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 20 Sep 2009 22:01:07 -0400 Subject: [PATCH] zephyr-post-receive: Detect renames. Signed-off-by: Anders Kaseorg --- git-hooks/zephyr-post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' \ -- 2.45.0