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

Function diff_same

diff.c:7722–7740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7720}
7721
7722void diff_same(struct diff_options *options,
7723 unsigned mode,
7724 const struct object_id *oid,
7725 const char *concatpath)
7726{
7727 struct diff_filespec *one;
7728
7729 if (S_ISGITLINK(mode) && is_submodule_ignored(concatpath, options))
7730 return;
7731
7732 if (options->prefix &&
7733 strncmp(concatpath, options->prefix, options->prefix_length))
7734 return;
7735
7736 one = alloc_filespec(concatpath);
7737 fill_filespec(one, oid, 1, mode);
7738 one->count++;
7739 diff_queue(&diff_queued_diff, one, one);
7740}
7741
7742struct diff_filepair *diff_unmerge(struct diff_options *options, const char *path)
7743{

Callers 2

run_diff_filesFunction · 0.85
show_modifiedFunction · 0.85

Calls 4

is_submodule_ignoredFunction · 0.85
alloc_filespecFunction · 0.85
fill_filespecFunction · 0.85
diff_queueFunction · 0.85

Tested by

no test coverage detected