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

Function gitdiff_copydst

apply.c:1057–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055}
1056
1057static int gitdiff_copydst(struct gitdiff_data *state,
1058 const char *line,
1059 struct patch *patch)
1060{
1061 patch->is_copy = 1;
1062 free(patch->new_name);
1063 patch->new_name = find_name(state->root, line, NULL, state->p_value ? state->p_value - 1 : 0, 0);
1064 return 0;
1065}
1066
1067static int gitdiff_renamesrc(struct gitdiff_data *state,
1068 const char *line,

Callers

nothing calls this directly

Calls 1

find_nameFunction · 0.85

Tested by

no test coverage detected