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

Function get_filespec

range-diff.c:477–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475};
476
477static struct diff_filespec *get_filespec(const char *name, const char *p)
478{
479 struct diff_filespec *spec = alloc_filespec(name);
480
481 fill_filespec(spec, null_oid(the_hash_algo), 0, 0100644);
482 spec->data = (char *)p;
483 spec->size = strlen(p);
484 spec->should_munmap = 0;
485 spec->is_stdin = 1;
486 spec->driver = &section_headers;
487
488 return spec;
489}
490
491static void patch_diff(const char *a, const char *b,
492 struct diff_options *diffopt)

Callers 1

patch_diffFunction · 0.85

Calls 3

alloc_filespecFunction · 0.85
fill_filespecFunction · 0.85
null_oidFunction · 0.85

Tested by

no test coverage detected