like fill_mmfile, but only for size, so we can avoid retrieving blob */
| 696 | |
| 697 | /* like fill_mmfile, but only for size, so we can avoid retrieving blob */ |
| 698 | static unsigned long diff_filespec_size(struct repository *r, |
| 699 | struct diff_filespec *one) |
| 700 | { |
| 701 | struct diff_populate_filespec_options dpf_options = { |
| 702 | .check_size_only = 1, |
| 703 | }; |
| 704 | |
| 705 | if (!DIFF_FILE_VALID(one)) |
| 706 | return 0; |
| 707 | diff_populate_filespec(r, one, &dpf_options); |
| 708 | return one->size; |
| 709 | } |
| 710 | |
| 711 | static int count_trailing_blank(mmfile_t *mf) |
| 712 | { |
no test coverage detected