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

Function has_changes

diffcore-pickaxe.c:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static int has_changes(mmfile_t *one, mmfile_t *two,
121 struct diff_options *o UNUSED,
122 regex_t *regexp, kwset_t kws)
123{
124 unsigned int c1 = one ? contains(one, regexp, kws, 0) : 0;
125 unsigned int c2 = two ? contains(two, regexp, kws, c1 + 1) : 0;
126 return c1 != c2;
127}
128
129static int pickaxe_match(struct diff_filepair *p, struct diff_options *o,
130 regex_t *regexp, kwset_t kws, pickaxe_fn fn)

Callers

nothing calls this directly

Calls 1

containsFunction · 0.85

Tested by

no test coverage detected