vendor/libgit2/src/diff_generate.c in rugged-0.25.0b7 vs vendor/libgit2/src/diff_generate.c in rugged-0.25.0b8
- old
+ new
@@ -5,10 +5,11 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "diff.h"
#include "diff_generate.h"
+#include "patch_generate.h"
#include "fileops.h"
#include "config.h"
#include "attr_file.h"
#include "filter.h"
#include "pathspec.h"
@@ -412,9 +413,10 @@
GIT_REFCOUNT_INC(diff);
diff->base.type = GIT_DIFF_TYPE_GENERATED;
diff->base.repo = repo;
diff->base.old_src = old_iter->type;
diff->base.new_src = new_iter->type;
+ diff->base.patch_fn = git_patch_generated_from_diff;
diff->base.free_fn = diff_generated_free;
memcpy(&diff->base.opts, &dflt, sizeof(git_diff_options));
git_pool_init(&diff->base.pool, 1);