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

Function gitdiff_renamedst

apply.c:1077–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077static int gitdiff_renamedst(struct gitdiff_data *state,
1078 const char *line,
1079 struct patch *patch)
1080{
1081 patch->is_rename = 1;
1082 free(patch->new_name);
1083 patch->new_name = find_name(state->root, line, NULL, state->p_value ? state->p_value - 1 : 0, 0);
1084 return 0;
1085}
1086
1087static int gitdiff_similarity(struct gitdiff_data *state UNUSED,
1088 const char *line,

Callers

nothing calls this directly

Calls 1

find_nameFunction · 0.85

Tested by

no test coverage detected