Don't go into merges.
authorStephen Haberman <stephen@exigencecorp.com>
Thu, 21 Aug 2008 18:58:57 +0000 (13:58 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Thu, 21 Aug 2008 18:59:46 +0000 (13:59 -0500)
For the commit list anyway--diff is still in the works.

server/post-receive-email
tests/t2203-1.txt
tests/t2203-2.txt

index 26253cf..cb536f5 100755 (executable)
@@ -334,7 +334,8 @@ generate_update_branch_email()
        # have already had notification emails and is present to show the
        # full detail of the change from rolling back the old revision to
        # the base revision and then forward to the new revision
-       for rev in $(git rev-list $oldrev..$newrev)
+       # Changed: added --first-parent to not go down merge commits
+       for rev in $(git rev-list --first-parent $oldrev..$newrev)
        do
                revtype=$(git cat-file -t "$rev")
                echo "       via  $rev ($revtype)"
index b7e0812..843e2ba 100644 (file)
@@ -8,8 +8,6 @@ X-Git-Newrev: $new_commit_hash
 
 The branch, topic1 has been updated
        via  $new_commit_hash (commit)
-       via  $second_stable_hash (commit)
-       via  $first_stable_hash (commit)
       from  $old_commit_hash (commit)
 
 Those revisions listed above that are new to this repository have
index b7de3f1..ac8ba9a 100644 (file)
@@ -8,8 +8,6 @@ X-Git-Newrev: $new_commit_hash
 
 The branch, topic1 has been updated
        via  $new_commit_hash (commit)
-       via  $second_stable_hash (commit)
-       via  $first_stable_hash (commit)
       from  $old_commit_hash (commit)
 
 Those revisions listed above that are new to this repository have