git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb: Handle commits with empty commit messages more reasonably

From
Petr Baudis <pasky@suse.cz>
Date
Oct 6, 2006, 16:55 UTC
Message-ID
<20061006165504.3934.97392.stgit@rover>
In-Reply-To
<20061006135508.GO20017@pasky.or.cz>

Currently those look very weird, you can't get easily at the commit view etc. This patch makes their title '(no commit message)'.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 gitweb/gitweb.perl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ea159e9..56e5231 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1115,6 +1115,9 @@ sub parse_commit {
 			last;
 		}
 	}
+	if ($co{'title'} eq "") {
+		$co{'title'} = $co{'title_short'} = '(no commit message)';
+	}
 	# remove added spaces
 	foreach my $line (@commit_lines) {
 		$line =~ s/^    //;
Previous: Jakub NarebskiNext: Luben Tuikov
Message 4 of 5 in “gitweb: Remove redundant "commit" link from shortlog”
  1. gitweb: Remove redundant "commit" link from shortlogLuben Tuikov, Sep 28, 2006
  2. Petr BaudisOct 6, 2006
  3. Jakub NarebskiOct 6, 2006
  4. gitweb: Handle commits with empty commit messages more reasonablyPetr Baudis, Oct 6, 2006
  5. Luben TuikovOct 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.