MCPcopy Index your code
hub / github.com/git/git / alloc_filespec

Function alloc_filespec

diff.c:4355–4363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4353}
4354
4355struct diff_filespec *alloc_filespec(const char *path)
4356{
4357 struct diff_filespec *spec;
4358
4359 FLEXPTR_ALLOC_STR(spec, path, path);
4360 spec->count = 1;
4361 spec->is_binary = -1;
4362 return spec;
4363}
4364
4365void free_filespec(struct diff_filespec *spec)
4366{

Callers 15

parse_linesFunction · 0.85
diffcore_breakFunction · 0.85
fill_textconv_grepFunction · 0.85
get_filespecFunction · 0.85
grab_blobFunction · 0.85
show_patch_diffFunction · 0.85
noindex_filespecFunction · 0.85
run_diffFunction · 0.85
diff_queue_addremoveFunction · 0.85
diff_queue_changeFunction · 0.85
diff_sameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected