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

Re: gitk: 'show origin of this line' barfs if gitk run in subdir

From
Paul Mackerras <paulus@samba.org>
Date
Dec 6, 2008, 10:56 UTC
Message-ID
<18746.23149.709046.770559@cargo.ozlabs.ibm.com>
In-Reply-To
<20081203222258.6db9b34e@crow>
Mark Burton writes:
> I think the same problem exists with the 'run git gui blame on this
> line' feature. It doesn't work when gitk is started in a subdir of the
> working tree but it does work when gitk is started in the top-level
> directory.

I have checked in a fix into my gitk.git repository at git://git.kernel.org/pub/scm/gitk/gitk.git. However, there seems to be a bug in git gui blame; it gives a "list index out of range" error sometimes.

Shawn, to see an example of the error, get a current kernel tree and do:

$ cd arch/powerpc
$ git gui blame --line=1183 2c5e76158fcea6e3b9536a74efa7b5e2e846d374 \
  ../../net/sunrpc/svcsock.c
Paul.
Previous: Mark Burton
Message 3 of 3 in “gitk: 'show origin of this line' barfs if gitk run in subdir”
  1. Mark BurtonDec 3, 2008
  2. Mark BurtonDec 3, 2008
  3. Paul MackerrasDec 6, 2008

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.