Add log count to header.
authorTed Zlatanov <tzz@lifelogs.com>
Thu, 23 Sep 2010 14:42:57 +0000 (09:42 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Thu, 23 Sep 2010 14:42:57 +0000 (09:42 -0500)
* post-receive: Add log count to header.

etc/ChangeLog
etc/post-receive

index 6fd6ac9..60890a1 100644 (file)
@@ -1,3 +1,7 @@
+2010-09-23  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * post-receive: Add log count to header.
+
 2010-09-02  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * post-receive: More subject formatting.
 2010-09-02  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * post-receive: More subject formatting.
index 0b307ea..d5fd8aa 100755 (executable)
@@ -183,7 +183,7 @@ generate_email()
        # that we can build from the parameters
        describe=$(git describe $rev 2>/dev/null)
        if [ -z "$describe" ]; then
        # that we can build from the parameters
        describe=$(git describe $rev 2>/dev/null)
        if [ -z "$describe" ]; then
-               describe=$((git log --format="%s" $oldrev...$newrev | perl -e'@p = <>; chomp @p; print join " ; ", @p') 2>/dev/null)
+               describe=$((git log --format="%s" $oldrev...$newrev | perl -e'@p = <>; chomp @p; print "=", scalar @p, "= ", join(" ; ", @p)') 2>/dev/null)
        fi
 
        if [ -z "$describe" ]; then
        fi
 
        if [ -z "$describe" ]; then