From: "Shawn O. Pearce" <spearce@spearce.org>
To: Andy Parkins <andyparkins@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-gui blame dividing by zero
Date: Wed, 4 Apr 2007 11:27:48 -0400 [thread overview]
Message-ID: <20070404152748.GE4628@spearce.org> (raw)
In-Reply-To: <200704041621.51390.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> wrote:
> $ git-gui blame HEAD somefile.cc
>
> I just get a window that contains:
>
> divide by zero
> divide by zero
> while executing
> "expr {100 * $blame_data($w,blame_lines)
> / $blame_data($w,total_lines)}"
> (procedure "blame_incremental_status" line 4)
> invoked from within
> "blame_incremental_status $w"
> (procedure "read_blame_catfile" line 27)
> invoked from within
> "read_blame_catfile file6 {} HEAD
> somefile.cc .cm.t .out.loaded_t .out.linenumber_t .out.file_t"
Heh. So we came up with no lines in the file. Weird. What does
git-blame produce on the same arguments? What about with the
--incremental flag?
I'll dig into git-gui and see what I can do to more gracefully
handle this condition, but right now I'm thinking we didn't get
any data from git...
--
Shawn.
next prev parent reply other threads:[~2007-04-04 15:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-04 15:21 git-gui blame dividing by zero Andy Parkins
2007-04-04 15:27 ` Shawn O. Pearce [this message]
2007-04-04 16:11 ` Shawn O. Pearce
2007-04-05 8:33 ` Andy Parkins
2007-04-05 8:44 ` Andy Parkins
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=20070404152748.GE4628@spearce.org \
--to=spearce@spearce.org \
--cc=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.