MCPcopy Create free account
hub / github.com/git/git / conclude_dirstat

Function conclude_dirstat

diff.c:3348–3364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3346}
3347
3348static 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
3366static void show_dirstat(struct diff_options *options)
3367{

Callers 2

show_dirstatFunction · 0.85
show_dirstat_by_lineFunction · 0.85

Calls 1

gather_dirstatFunction · 0.85

Tested by

no test coverage detected