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

Function diff_free_filespec_blob

diff.c:4644–4655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4642}
4643
4644void diff_free_filespec_blob(struct diff_filespec *s)
4645{
4646 if (s->should_free)
4647 free(s->data);
4648 else if (s->should_munmap)
4649 munmap(s->data, s->size);
4650
4651 if (s->should_free || s->should_munmap) {
4652 s->should_free = s->should_munmap = 0;
4653 s->data = NULL;
4654 }
4655}
4656
4657void diff_free_filespec_data(struct diff_filespec *s)
4658{

Callers 4

diffcore_breakFunction · 0.85
find_basename_matchesFunction · 0.85
diffcore_rename_extendedFunction · 0.85
diff_free_filespec_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected