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

Function prefix_one

apply.c:2182–2189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2180}
2181
2182static void prefix_one(struct apply_state *state, char **name)
2183{
2184 char *old_name = *name;
2185 if (!old_name)
2186 return;
2187 *name = prefix_filename(state->prefix, *name);
2188 free(old_name);
2189}
2190
2191static void prefix_patch(struct apply_state *state, struct patch *p)
2192{

Callers 1

prefix_patchFunction · 0.85

Calls 1

prefix_filenameFunction · 0.85

Tested by

no test coverage detected