]> Lady’s Gitweb - Gitweb/commit
gitweb: Finish restoring "blob" links in git_difftree_body
authorJakub Narebski <redacted>
Sun, 19 Nov 2006 21:51:39 +0000 (22:51 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commit6632d3d80fde22cf9f185819218630bbf085c7026f019c174293f6e202a5a2ae
treefecc225e7609352305310df9a5fde47e231ceeb13e5bdad8f52d898a9b006aee
parent32011bfbc6df2a1ccc158a9c77c8bbc59b3cfd607f6701ad200aecc27c572936
gitweb: Finish restoring "blob" links in git_difftree_body

This finishes work started by commit 4777b0141a4812177390da4b6ebc9d40ac3da4b5
  "gitweb: Restore object-named links in item lists"
by Petr Baudis. It brings back rest of "blob" links in difftree-raw
like part of "commit" and "commitdiff" views, namely in
git_difftree_body subroutine.

Now the td.link table cell has the following links:
 * link to diff ("blobdiff" view) in "commit" view, if applicable
   (there is no link to uninteresting creation/deletion diff), or
   link to patch anchor in "commitdiff" view.
 * link to current version of file ("blob" view), with the obvious
   exception of file deletion, where it is link to the parent
   version.
 * link to "blame" view, if it is enabled, and file was not just
   created (i.e. it has any history).
 * link to history of the file ("history" view), again with sole
   exception of the case of new file.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.229887 seconds and 4 git commands to generate.