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

Re: [PATCH 1/2] gitview: Fix the blame interface.

From
Aneesh Kumar <aneesh.kumar@gmail.com>
Date
Jun 13, 2007, 08:33 UTC
Message-ID
<cc723f590706130133v3952e38yc4ceecc6cdc44365@mail.gmail.com>
In-Reply-To
<7vmyz4h2nb.fsf@assigned-by-dhcp.pobox.com>
On 6/13/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> "Aneesh Kumar K.V" <aneesh.kumar@gmail.com> writes:
>
> > @@ -401,7 +402,11 @@ class AnnotateWindow(object):
> >       def data_ready(self, source, condition):
> >               while (1):
> >                       try :
> > -                             buffer = source.read(8192)
> > +                             # A simple readline doesn't work
> > +                             # a readline bug ??
> > +                             buffer=""
> > +                             buffer = source.read(100)
> > +
>
> Are you sure about the first assignment?
>

That was a debug left over i guess. I will send an update patch which removed the same. The problem was an interrupted source.read/readline was returning old values.

Show 16 quoted lines
> > @@ -419,7 +432,8 @@ class AnnotateWindow(object):
> >                                       m = annotate_line.match(buff)
> >                                       if not m:
> >                                               continue
> > -                                     filename = m.group(2)
> > +                                     else:
> > +                                             filename = m.group(2)
> >                               else:
> >                                       self.commit_sha1 = m.group(1)
> >                                       self.source_line = int(m.group(2))
>
> The script is in contrib/ so I probably shouldn't be nitpicking,
> but for this particular hunk, I think (1) this is a no-op
> change, and (2) the original is easier to read.
>
>
I will update if you feel that way
-aneesh
Previous: Junio C Hamano
Message 5 of 5 in “gitview: Fix the blame interface.”
  1. 1/2 gitview: Fix the blame interface.Aneesh Kumar K.V, Jun 12, 2007
  2. 2/2 gitview: run blame with -M and -CAneesh Kumar K.V, Jun 12, 2007
  3. Junio C HamanoJun 13, 2007
  4. Junio C HamanoJun 13, 2007
  5. Aneesh KumarJun 13, 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.