# [PATCH] post-receive-email: add --dirstat output to update_branch summary section

1 messages from 2008-04-22 to 2008-04-22. Participants: Andy Parkins.
Thread: https://gitlist.dev/t/13208

## Andy Parkins, 2008-04-22 09:30

Subject: [PATCH] post-receive-email: add --dirstat output to update_branch summary section
Message-ID: <200804221030.31805.andyparkins@gmail.com>
URL: https://gitlist.dev/e/200804221030.31805.andyparkins%40gmail.com

```

Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
 contrib/hooks/post-receive-email |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 62a740c..2e706b3 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -410,6 +410,8 @@ generate_update_branch_email()
 	# non-fast forward updates.
 	echo ""
 	echo "Summary of changes:"
+	git diff --dirstat $oldrev..$newrev
 	git diff-tree --stat --summary --find-copies-harder $oldrev..$newrev
 }
 
-- 
1.5.5.1.57.g5909c

```
