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

[PATCH 1/2] gitweb: Add filename to page title if set

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 20, 2006, 06:17 UTC
Message-ID
<11507842063504-git-send-email-jnareb@gmail.com>
In-Reply-To
<11507842053885-git-send-email-jnareb@gmail.com>
---
 gitweb/gitweb.cgi |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
a54751bb328072baed5446bdc4076f1e00002737
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 12d5271..1e1a044 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -260,7 +260,10 @@ sub git_header_html {
 	if (defined $project) {
 		$title .= " - $project";
 		if (defined $action) {
+			if (defined $file_name) {
+				$title .= " - $file_name";
+			}
 		}
 	}
 	print $cgi->header(-type=>'text/html',  -charset => 'utf-8', -status=> $status, -expires => $expires);
-- 
1.3.0
Previous: Jakub NarebskiNext: Jakub Narebski
Message 2 of 4 in “gitweb: Enhance page title”
  1. 0/2 gitweb: Enhance page titleJakub Narebski, Jun 20, 2006
  2. 1/2 gitweb: Add filename to page title if setJakub Narebski, Jun 20, 2006
  3. 1/2 gitweb: add '/' to the end of filename in page title for treesJakub Narebski, Jun 20, 2006
  4. Jakub NarebskiJun 20, 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.