projects
/
git-tools-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cbcc4be
)
print "Summary of changes:" only if there more than one commit
author
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 27 Apr 2010 11:24:45 +0000
(13:24 +0200)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 27 Apr 2010 11:24:45 +0000
(13:24 +0200)
id-new-project/post-receive-email-id
patch
|
blob
|
history
diff --git
a/id-new-project/post-receive-email-id
b/id-new-project/post-receive-email-id
index
5f67449
..
741bbf7
100644
(file)
--- a/
id-new-project/post-receive-email-id
+++ b/
id-new-project/post-receive-email-id
@@
-371,6
+371,7
@@
generate_update_branch_email()
fi
fi
fi
fi
+ summary_counter=0
echo ""
if [ -z "$rewind_only" ]; then
echo "Revisions details."
echo ""
if [ -z "$rewind_only" ]; then
echo "Revisions details."
@@
-384,6
+385,7
@@
generate_update_branch_email()
generate_gitweb_link
git rev-list --pretty -n1 $rev
git diff-tree --stat --summary --find-copies-harder $rev | tail -n +2
generate_gitweb_link
git rev-list --pretty -n1 $rev
git diff-tree --stat --summary --find-copies-harder $rev | tail -n +2
+ summary_counter=`expr $summary_counter + 1`
done
newrev=$save_newrev
done
newrev=$save_newrev
@@
-402,9
+404,11
@@
generate_update_branch_email()
# is effectively a random revision at this point - the user will be
# interested in what this revision changed - including the undoing of
# previous revisions in the case of non-fast forward updates.
# is effectively a random revision at this point - the user will be
# interested in what this revision changed - including the undoing of
# previous revisions in the case of non-fast forward updates.
- echo ""
- echo "Summary of changes:"
- git diff-tree --stat --summary --find-copies-harder $oldrev..$newrev
+ if [ $summary_counter -gt 1 ]; then
+ echo ""
+ echo "Summary of changes:"
+ git diff-tree --stat --summary --find-copies-harder $oldrev..$newrev
+ fi
}
#
}
#