zephyr-post-receive: Detect renames.
authorAnders Kaseorg <andersk@mit.edu>
Mon, 21 Sep 2009 02:01:07 +0000 (22:01 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Mon, 21 Sep 2009 02:01:07 +0000 (22:01 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
git-hooks/zephyr-post-receive

index bd06fe45edadd62440ec867ec59f9505110451de..0dfa83b8b186940f3e27a83a83eb770906a26a7c 100755 (executable)
@@ -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/\e\[m/}@{/g' \