]> Lady’s Gitweb - Gitweb/commit
Blame "linenr" link jumps to previous state at "orig_lineno"
authorLuben Tuikov <redacted>
Fri, 5 Jan 2007 02:37:45 +0000 (18:37 -0800)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commit2851708a5984c8ee0aa3df7d7ee73c6d092d513beec489333cb46ea0819967e7
tree9947947affa51ed28a1205302f3d52a0bca6f8dc005fbe504a56afc8390a21e4
parent36ccf91d9dc29d8de089c4f4a169544589688c389212d8ebcdc47b887e9edcfc
Blame "linenr" link jumps to previous state at "orig_lineno"

Blame currently displays the commit id which introduced a
block of one or more lines, the line numbers wrt the current
listing of the file and the file's line contents.

The commit id displayed is hyperlinked to the commit.

Currently the linenr links are hyperlinked to the same
commit id displayed to the left, which is _no_ different
than the block of lines displayed, since it is the _same
commit_ that is hyperlinked.  And thus clicking on it leads
to the same state of the file for that chunk of
lines. I.e. data mining is not currently possible with
gitweb given a chunk of lines introduced by a commit.

This patch makes such data mining possible.

The line numbers are now hyperlinked to the parent of the
commit id of the block of lines.  Furthermore they are
linked to the line where that block was introduced.

Thus clicking on a linenr link will show you the file's
line(s) state prior to the commit id you were viewing.

So clicking continually on a linenr link shows you how this
line and its line number changed over time, leading to the
initial commit where it was first introduced.

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