# To create a new action, modify /usr/share/gitweb/gitweb.cgi
# search for "our %actions" add a new line:
"commit_message" => \&git_commit_message
# Then append this simple sub I wrote
sub git_commit_message {
$hash ||= $hash_base || "HEAD";
my %co = parse_commit($hash)
or die_error(404, "Unknown commit object");
git_print_log($co{'comment'});
}