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

[PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 20, 2006, 06:17 UTC
Message-ID
<1150784206793-git-send-email-jnareb@gmail.com>
In-Reply-To
<11507842053885-git-send-email-jnareb@gmail.com>
---
 gitweb/gitweb.cgi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
d17c119d32ae4c5dd50976ea6a255d2bcbe480ed
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 1e1a044..42f3296 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -263,6 +263,9 @@ sub git_header_html {
 			$title .= "/$action";
 			if (defined $file_name) {
 				$title .= " - $file_name";
+				if ($action eq "tree" && $file_name !~ m|/$|) {
+					$title .= "/";
+				}
 			}
 		}
 	}
-- 
1.3.0
Previous: Jakub NarebskiNext: Jakub Narebski
Message 3 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.