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

Re: [PATCH] gitweb: tree view: hash_base and hash are now context sensitive

From
Junio C Hamano <junkio@cox.net>
Date
Sep 29, 2006, 06:06 UTC
Message-ID
<7vmz8jp5p3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060928185232.96094.qmail@web31802.mail.mud.yahoo.com>
Luben Tuikov <ltuikov@yahoo.com> writes:
Show 18 quoted lines
>> > > Agreed, we should always refer to the commit-ish, for obvious
>> > > reasons.
>> > >
>> > > This patch doesn't make this decision though.  It simply
>> > > sets hash_base to HEAD if not defined.
>> > >
>> > > Now, since "git-ls-tree" works on both commit-ish and
>> > > tree-ish, we are ok.
>> > 
>> > I think so, too.  Jakub?
>> 
>> Status?  I see Jakub hasn't objected, and it is really important
>> for us to be able to link to "latest" binary blob -- for example
>> a PDF spec file.
>
> Junio,
>
> What are the objections to this patch?
No objections from me --- rather lack of objections from Jakub ;-)
But the fragments do not appear to apply anymore.
@@ -1625,7 +1625,7 @@ sub git_print_tree_entry {
 			              "history");
 		}
 		print " | " .
-			$cgi->a({-href => href(action=>"blob_plain", hash_base=>"HEAD",
+			$cgi->a({-href => href(action=>"blob_plain", hash_base=>$hash_base,
 					       file_name=>"$basedir$t->{'name'}")},
 				"raw");
 		print "</td>\n";

There is no call to create blob_plain link with hash_base
hardcoded to "HEAD" in git-print-tree-entry.

Care to re-spin?
Previous: Luben TuikovNext: Luben Tuikov
Message 7 of 12 in “gitweb: tree view: hash_base and hash are now context sensitive”
  1. gitweb: tree view: hash_base and hash are now context sensitiveLuben Tuikov, Sep 26, 2006
  2. Jakub NarebskiSep 26, 2006
  3. Luben TuikovSep 26, 2006
  4. Junio C HamanoSep 27, 2006
  5. Luben TuikovSep 27, 2006
  6. Luben TuikovSep 28, 2006
  7. Junio C HamanoSep 29, 2006
  8. Luben TuikovSep 29, 2006
  9. Jakub NarebskiSep 29, 2006
  10. Luben TuikovSep 29, 2006
  11. Jakub NarebskiOct 1, 2006
  12. Luben TuikovOct 2, 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.