Commit e7ec327d by Edward Thomson Committed by Edward Thomson

patch parse: unset path prefix

parent 8bca8b9e
......@@ -884,6 +884,10 @@ int git_patch_from_patchfile(
patch = git__calloc(1, sizeof(git_patch_parsed));
GITERR_CHECK_ALLOC(patch);
/* TODO: allow callers to specify prefix depth (eg, `-p2`) */
patch->base.diff_opts.new_prefix = "";
patch->base.diff_opts.old_prefix = "";
patch->base.delta = git__calloc(1, sizeof(git_diff_delta));
patch->base.delta->status = GIT_DELTA_MODIFIED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment