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

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

From
MBMark Burton <markb@ordern.com>
Date
Dec 3, 2008, 20:51 UTC
Message-ID
<20081203205158.6b4b62c7@crow>
Hi,

I was just trying out the new gitk feature that shows you the origin of a selected line in the diff pane and found that it doesn't work right if gitk is not started in the top-level work directory - i.e. if you are in a subdir it pops up an error message of this form:

Error running git blame: fatal: no such path $path in $sha1

I guess it needs something like subdir-depth number of ../ prepended to the front of the pathname to make the blame succeed.

I could try and fix this but I am sure that others who understand the sources of gitk/git-blame/git can do it much quicker than me.

Cheers,
Mark
Next: Mark Burton
Message 1 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.