X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=git%2Fpost-receive-email;h=c565634e6e2f257a1ae00fc2f605a311db5bd971;hb=4150a9f9936714c8a04fc2cd8ae6df26ec5f7db8;hp=af8377c11888ae71cc093b2bbf284421bdd555f1;hpb=b0f344469c3a4eae710959fdda9d07bae75476dd;p=sbcl.git diff --git a/git/post-receive-email b/git/post-receive-email index af8377c..c565634 100755 --- a/git/post-receive-email +++ b/git/post-receive-email @@ -704,7 +704,7 @@ if [ -n "$1" -a -n "$2" -a -n "$3" ]; then else while read oldrev newrev refname do - echo "Sending email for $refname: $oldrev -> $newrev" + echo "Sending mail for $refname: $oldrev -> $newrev" # SBCL KLUDGE: the default script sends one email per # push. We want one per commit. As long as we're # in fast-forward-only world, this should do the @@ -714,6 +714,7 @@ else ! expr "$refname" : "refs/heads/" > /dev/null) # not a branch then # Just one email. + echo "Not a branch update: all changes in one email." generate_email $oldrev $newrev $refname | send_mail else # Get all revisions from old to new. @@ -724,15 +725,18 @@ else do if ($no_merges && git rev-parse --verify --quiet "$rev"^2 > /dev/null) then + echo "Merge detected: $rev. Sending all commits in a single email." no_merges=false fi done if $no_merges then # Simple branch update, one mail per commit. + echo "Sending one email per commit." lastrev=$oldrev for step in $revlist do + echo "Sending: $(git log -n1 --oneline $step)" generate_email $lastrev $step $refname | send_mail lastrev=$step done