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

Function gitdiff_delete

apply.c:1027–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027static int gitdiff_delete(struct gitdiff_data *state,
1028 const char *line,
1029 struct patch *patch)
1030{
1031 patch->is_delete = 1;
1032 free(patch->old_name);
1033 patch->old_name = xstrdup_or_null(patch->def_name);
1034 return gitdiff_oldmode(state, line, patch);
1035}
1036
1037static int gitdiff_newfile(struct gitdiff_data *state,
1038 const char *line,

Callers

nothing calls this directly

Calls 2

xstrdup_or_nullFunction · 0.85
gitdiff_oldmodeFunction · 0.85

Tested by

no test coverage detected