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

Re: [PATCH] [gitweb] Blame "linenr" link jumps to previous state at "orig_lineno"

From
Junio C Hamano <junkio@cox.net>
Date
Jan 5, 2007, 03:50 UTC
Message-ID
<7vk602jfo7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<605150.6351.qm@web31807.mail.mud.yahoo.com>
Luben Tuikov <ltuikov@yahoo.com> writes:
Show 6 quoted lines
> A quick show-and-tell of this patch is after applying it, open
> "blame" on a file, click on a linenr link of a block which
> has only a single line changed -- the diff between what
> you're seeing now and before is at least that line.  This you can
> data-mine with gitweb back to where the line was introduced.  Similar
> argument applies to blocks of more than one line.
One non-question and one question:
 - This favors the first parent, which is obviously the right
   thing for most of the time.  I wonder what happens to a
   merge, though, but I realize that a line attributed to a
   merge is even rarer, and such a line is introduced by the
   "evil merge".
 - I wonder if the line number is correct for the parent
   commit.  How well does this work when you clicked a line that
   was added at the end of the file, where the $orig_lineno goes
   beyond the whole file in the parent?
Previous: Luben TuikovNext: Luben Tuikov
Message 2 of 3 in “[gitweb] Blame "linenr" link jumps to previous state at "orig_lineno"”
  1. [gitweb] Blame "linenr" link jumps to previous state at "orig_lineno"Luben Tuikov, Jan 5, 2007
  2. Junio C HamanoJan 5, 2007
  3. Luben TuikovJan 5, 2007

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.