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

Re: git-gui blame dividing by zero

From
APAndy Parkins <andyparkins@gmail.com>
Date
Apr 5, 2007, 08:44 UTC
Message-ID
<200704050944.23500.andyparkins@gmail.com>
In-Reply-To
<200704050933.14154.andyparkins@gmail.com>
On Thursday 2007 April 05 09:33, Andy Parkins wrote:
> So; I think you've fixed a nasty bug, but that bug was only presenting
> because something else is messed up.  I'll poke around and see what I can
> discover (however, I don't understand tk so what I discover might be that I
> don't understand tk :-)).
Okay - got it.  Try this in the git repository:
 # this works
 $ git-gui blame HEAD templates/hooks--commit-msg
 $ cd templates
 # this doesn't work
 $ git-gui blame HEAD hooks--commit-msg
 # this works
 $ git-gui blame HEAD templates/hooks--commit-msg

The problem is that git-gui is calling git-cat-file to read the file, but git-cat-file expects a path from the repository root. The current directory doesn't matter - you always have to type the path as if you're in the working dir root.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Andy Parkins
Message 5 of 5 in “git-gui blame dividing by zero”
  1. Andy ParkinsApr 4, 2007
  2. Shawn O. PearceApr 4, 2007
  3. Shawn O. PearceApr 4, 2007
  4. Andy ParkinsApr 5, 2007
  5. Andy ParkinsApr 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.