summaryrefslogtreecommitdiff
path: root/src/diff_xdiff.h
blob: c547b00cf05388be89ac30ad9cee92733c14da2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_diff_xdiff_h__
#define INCLUDE_diff_xdiff_h__

#include "diff.h"
#include "diff_patch.h"
#include "xdiff/xdiff.h"

/* A git_xdiff_output is a git_diff_output with extra fields necessary
 * to use libxdiff.  Calling git_xdiff_init() will set the diff_cb field
 * of the output to use xdiff to generate the diffs.
 */
typedef struct {
	git_diff_output output;

	xdemitconf_t config;
	xpparam_t    params;
	xdemitcb_t   callback;
} git_xdiff_output;

void git_xdiff_init(git_xdiff_output *xo, const git_diff_options *opts);

#endif