mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
patch parse: unset path prefix
This commit is contained in:
parent
8bca8b9e03
commit
e7ec327d4b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user