fi
fi
+ summary_counter=0
echo ""
if [ -z "$rewind_only" ]; then
echo "Revisions details."
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
# 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
}
#