From: Luben Tuikov <ltuikov@yahoo.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] [gitweb] Blame "linenr" link jumps to previous state at "orig_lineno"
Date: Fri, 5 Jan 2007 14:56:16 -0800 (PST) [thread overview]
Message-ID: <46370.61489.qm@web31814.mail.mud.yahoo.com> (raw)
In-Reply-To: <7vk602jfo7.fsf@assigned-by-dhcp.cox.net>
--- Junio C Hamano <junkio@cox.net> wrote:
> Luben Tuikov <ltuikov@yahoo.com> writes:
>
> > 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?
It displayed the whole file, since the previous state of the
file I was looking at was short. In effect for the case in
point it displays the bottom of the file.
If you remember, this had been my "white whale" for about a
year and a half now. I accidentally "got it" while using
git-blame from shell prompt.
I think it's a worthwhile thing to have in gitweb.
Luben
prev parent reply other threads:[~2007-01-05 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-05 2:37 [PATCH] [gitweb] Blame "linenr" link jumps to previous state at "orig_lineno" Luben Tuikov
2007-01-05 3:50 ` Junio C Hamano
2007-01-05 22:56 ` Luben Tuikov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46370.61489.qm@web31814.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox