Commit 897d1d2
gitweb: Finish restoring "blob" links in git_difftree_body
This finishes work started by commit 4777b01
"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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>1 parent af6feeb commit 897d1d2
1 file changed
+21
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
| 2095 | + | |
2095 | 2096 | | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2096 | 2100 | | |
2097 | 2101 | | |
2098 | 2102 | | |
| |||
2112 | 2116 | | |
2113 | 2117 | | |
2114 | 2118 | | |
2115 | | - | |
| 2119 | + | |
2116 | 2120 | | |
2117 | | - | |
2118 | | - | |
2119 | | - | |
2120 | | - | |
2121 | | - | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
2122 | 2124 | | |
2123 | 2125 | | |
2124 | 2126 | | |
| |||
2163 | 2165 | | |
2164 | 2166 | | |
2165 | 2167 | | |
2166 | | - | |
2167 | | - | |
| 2168 | + | |
| 2169 | + | |
2168 | 2170 | | |
2169 | | - | |
2170 | | - | |
2171 | | - | |
2172 | | - | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
2173 | 2174 | | |
2174 | 2175 | | |
2175 | 2176 | | |
| |||
2208 | 2209 | | |
2209 | 2210 | | |
2210 | 2211 | | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
2214 | 2215 | | |
2215 | | - | |
2216 | | - | |
2217 | | - | |
2218 | | - | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
2219 | 2219 | | |
2220 | | - | |
2221 | | - | |
| 2220 | + | |
| 2221 | + | |
2222 | 2222 | | |
2223 | 2223 | | |
2224 | 2224 | | |
| |||
0 commit comments