| 3346 | } |
| 3347 | |
| 3348 | static void conclude_dirstat(struct diff_options *options, |
| 3349 | struct dirstat_dir *dir, |
| 3350 | unsigned long changed) |
| 3351 | { |
| 3352 | struct dirstat_file *to_free = dir->files; |
| 3353 | |
| 3354 | if (!changed) { |
| 3355 | /* This can happen even with many files, if everything was renames */ |
| 3356 | ; |
| 3357 | } else { |
| 3358 | /* Show all directories with more than x% of the changes */ |
| 3359 | QSORT(dir->files, dir->nr, dirstat_compare); |
| 3360 | gather_dirstat(options, dir, changed, "", 0); |
| 3361 | } |
| 3362 | |
| 3363 | free(to_free); |
| 3364 | } |
| 3365 | |
| 3366 | static void show_dirstat(struct diff_options *options) |
| 3367 | { |
no test coverage detected