summaryrefslogtreecommitdiff
path: root/git-gui/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-04-04 16:08:46 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-04-04 16:08:46 (GMT)
commitf6f2aa39ef97cae03c71ecfecc334f0df60d7920 (patch)
treeb8dfb1c6a158a5bf99aedb58e4acddf61064189b /git-gui/git-gui.sh
parent2ec0cb7959b0bf965d54f95453f5b4b34e8d3100 (diff)
downloadgit-f6f2aa39ef97cae03c71ecfecc334f0df60d7920.zip
git-f6f2aa39ef97cae03c71ecfecc334f0df60d7920.tar.gz
git-f6f2aa39ef97cae03c71ecfecc334f0df60d7920.tar.bz2
git-gui: Brown paper bag fix division by 0 in blame
If we generate a blame status string before we have obtained any annotation data at all from the input file, or if the input file is empty, our total_lines will be 0. This causes a division by 0 error when we blindly divide by the 0 to compute the total percentage of lines loaded. Instead we should report 0% done. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui/git-gui.sh')
0 files changed, 0 insertions, 0 deletions