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

Function diff_free

diff.c:7165–7184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7163}
7164
7165void diff_free(struct diff_options *options)
7166{
7167 if (options->no_free)
7168 return;
7169
7170 if (options->objfind) {
7171 oidset_clear(options->objfind);
7172 FREE_AND_NULL(options->objfind);
7173 }
7174
7175 FREE_AND_NULL(options->orderfile);
7176 for (size_t i = 0; i < options->anchors_nr; i++)
7177 free(options->anchors[i]);
7178 FREE_AND_NULL(options->anchors);
7179 options->anchors_nr = options->anchors_alloc = 0;
7180
7181 diff_free_file(options);
7182 diff_free_ignore_regex(options);
7183 clear_pathspec(&options->pathspec);
7184}
7185
7186void diff_flush(struct diff_options *options)
7187{

Callers 11

queue_diffsFunction · 0.85
outputFunction · 0.85
release_revisionsFunction · 0.85
log_tree_commitFunction · 0.85
do_diff_cacheFunction · 0.85
run_revertFunction · 0.85
diff_flushFunction · 0.85
cmd_log_walkFunction · 0.85
cmd_showFunction · 0.85
cmd_diff_treeFunction · 0.85

Calls 4

oidset_clearFunction · 0.85
diff_free_fileFunction · 0.85
diff_free_ignore_regexFunction · 0.85
clear_pathspecFunction · 0.85

Tested by

no test coverage detected