gitweb: Empty patch for merge means trivial merge, not no differences
[gitweb.git] / gitweb / gitweb.perl
index 549e0270b6d8a277b20546756d64a639fce9ae99..8c688be66d5a972d57c37031042bd5d56395a079 100755 (executable)
@@ -2877,7 +2877,14 @@ sub git_patchset_body {
        } continue {
                print "</div>\n"; # class="patch"
        }
-       print "<div class=\"diff nodifferences\">No differences found</div>\n" if (!$patch_number);
+
+       if ($patch_number == 0) {
+               if (@hash_parents > 1) {
+                       print "<div class=\"diff nodifferences\">Trivial merge</div>\n";
+               } else {
+                       print "<div class=\"diff nodifferences\">No differences found</div>\n";
+               }
+       }
 
        print "</div>\n"; # class="patchset"
 }