mirror of
https://github.com/git/git.git
synced 2026-08-11 17:48:42 +00:00
f6f2aa39ef97cae03c71ecfecc334f0df60d7920
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>
Description
Languages
C
49.9%
Shell
39.5%
Perl
4.3%
Tcl
3%
Python
0.8%
Other
2.2%