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

Function gitdiff_renamesrc

apply.c:1067–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067static int gitdiff_renamesrc(struct gitdiff_data *state,
1068 const char *line,
1069 struct patch *patch)
1070{
1071 patch->is_rename = 1;
1072 free(patch->old_name);
1073 patch->old_name = find_name(state->root, line, NULL, state->p_value ? state->p_value - 1 : 0, 0);
1074 return 0;
1075}
1076
1077static int gitdiff_renamedst(struct gitdiff_data *state,
1078 const char *line,

Callers

nothing calls this directly

Calls 1

find_nameFunction · 0.85

Tested by

no test coverage detected