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

[PATCH] Fix snapshot link in tree view

From
Petr Baudis <pasky@suse.cz>
Date
Sep 22, 2006, 23:21 UTC
Message-ID
<20060922232120.596.63045.stgit@rover>
It would just give HEAD snapshot instead of one of the particular tree.

Perhaps we should also include snapshot in the global navbar? And perhaps stgit should have a way to edit the mail before sending it so that I could note this below the three dashes? ;-)

Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c5f3810..fc31ac3 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2771,7 +2771,7 @@ sub git_tree {
 		if ($have_snapshot) {
 			# FIXME: Should be available when we have no hash base as well.
 			push @views_nav,
-				$cgi->a({-href => href(action=>"snapshot")},
+				$cgi->a({-href => href(action=>"snapshot", hash=>$hash)},
 					"snapshot");
 		}
 		git_print_page_nav('tree','', $hash_base, undef, undef, join(' | ', @views_nav));
Next: Junio C Hamano
Message 1 of 4 in “Fix snapshot link in tree view”
  1. Fix snapshot link in tree viewPetr Baudis, Sep 22, 2006
  2. Junio C HamanoSep 23, 2006
  3. Jakub NarebskiSep 23, 2006
  4. Petr BaudisSep 23, 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.