From: Andy Parkins Date: Tue, 13 Feb 2007 14:24:21 GMT Subject: [PATCH 3/3] diffstat generation in hooks--update was passing "^baserev" to git-diff-tree Message-ID: <200702131424.21665.andyparkins@gmail.com> For generating the diffstat after a branch update, git-diff-tree is simply comparing the new revision with the base revision. However, the baserev was being passed with a "^" operator proceeding it - this (I think) made git-diff-tree think that a path was being specified for comparison rather than a second path, so only a single revision was being summarised. Signed-off-by: Andy Parkins --- templates/hooks--update | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/hooks--update b/templates/hooks--update index 7e8258a..ee3859c 100644 --- a/templates/hooks--update +++ b/templates/hooks--update @@ -193,8 +193,8 @@ case "$refname_type" in git-rev-parse --not --all | git-rev-list --stdin --pretty $newrev ^$baserev echo $LOGEND echo "" - echo "Diffstat:" - git-diff-tree --no-color --stat -M -C --find-copies-harder $newrev ^$baserev + echo "Diffstat against $baserev:" + git-diff-tree --no-color --stat -M -C --find-copies-harder $newrev $baserev fi ;; "annotated tag") -- 1.5.0.rc4.364.g85b1