From: Martin Mares Date: Sun, 30 Apr 2006 10:00:10 +0000 (+0200) Subject: When diffing for mail reports, detect renames and copies. X-Git-Tag: holmes-import~645^2~8 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7361b8480324618619bd7fa8d8e0caa6f0d7ce4a;p=libucw.git When diffing for mail reports, detect renames and copies. --- diff --git a/build/git/hooks/update b/build/git/hooks/update index aca1a7fe..01baae60 100755 --- a/build/git/hooks/update +++ b/build/git/hooks/update @@ -3,7 +3,6 @@ # Called by git-receive-pack with arguments: refname sha1-old sha1-new # -#recipient="mj@ucw.cz" recipient="sherlock-commits@host2.netcentrum.cz" branch=${1#refs/heads/} @@ -41,7 +40,7 @@ else esac echo git-rev-list --pretty "$3" "^$base" - git-diff "$base" "$3" + git-diff -C "$base" "$3" t=`mktemp -t gitlog.XXXXXXX` git-diff --name-only -r "$base" "$3" >$t while read X ; do