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

Function gitdiff_copysrc

apply.c:1047–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047static int gitdiff_copysrc(struct gitdiff_data *state,
1048 const char *line,
1049 struct patch *patch)
1050{
1051 patch->is_copy = 1;
1052 free(patch->old_name);
1053 patch->old_name = find_name(state->root, line, NULL, state->p_value ? state->p_value - 1 : 0, 0);
1054 return 0;
1055}
1056
1057static int gitdiff_copydst(struct gitdiff_data *state,
1058 const char *line,

Callers

nothing calls this directly

Calls 1

find_nameFunction · 0.85

Tested by

no test coverage detected