summaryrefslogtreecommitdiff
path: root/src/apply.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-09-16 11:37:03 -0400
committerEdward Thomson <ethomson@github.com>2016-05-26 13:01:04 -0500
commitb85bd8ce66f271e281434ba4328a342877e0a23b (patch)
tree1d8d4de5f0dfb49d5a77fc8b96b7b040390ce7a4 /src/apply.c
parent804d5fe9f59f4d8548da9f650bc43050951f26d7 (diff)
downloadlibgit2-b85bd8ce66f271e281434ba4328a342877e0a23b.tar.gz
patch: use delta's old_file/new_file members
No need to replicate the old_file/new_file members, or plumb them strangely up.
Diffstat (limited to 'src/apply.c')
-rw-r--r--src/apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apply.c b/src/apply.c
index 875f3d042..a453d3dbb 100644
--- a/src/apply.c
+++ b/src/apply.c
@@ -340,7 +340,7 @@ int git_apply__patch(
*mode_out = 0;
if (patch->delta->status != GIT_DELTA_DELETED) {
- const git_diff_file *newfile = patch->newfile(patch);
+ const git_diff_file *newfile = &patch->delta->new_file;
filename = git__strdup(newfile->path);
mode = newfile->mode ?