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

Function pool_diff_free_filepair

diffcore-rename.c:1363–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361}
1362
1363void pool_diff_free_filepair(struct mem_pool *pool,
1364 struct diff_filepair *p)
1365{
1366 if (!pool) {
1367 diff_free_filepair(p);
1368 return;
1369 }
1370
1371 /*
1372 * Similar to diff_free_filepair() but only frees the data from the
1373 * filespecs; not the filespecs or the filepair which were
1374 * allocated from the pool.
1375 */
1376 free_filespec_data(p->one);
1377 free_filespec_data(p->two);
1378}
1379
1380void diffcore_rename_extended(struct diff_options *options,
1381 struct mem_pool *pool,

Callers 3

collect_renamesFunction · 0.85
diffcore_rename_extendedFunction · 0.85

Calls 2

diff_free_filepairFunction · 0.85
free_filespec_dataFunction · 0.85

Tested by

no test coverage detected