|
Packit |
ae9e2a |
/*
|
|
Packit |
ae9e2a |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit |
ae9e2a |
*
|
|
Packit |
ae9e2a |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit |
ae9e2a |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
#ifndef INCLUDE_diff_xdiff_h__
|
|
Packit |
ae9e2a |
#define INCLUDE_diff_xdiff_h__
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#include "diff.h"
|
|
Packit |
ae9e2a |
#include "xdiff/xdiff.h"
|
|
Packit |
ae9e2a |
#include "patch_generate.h"
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
/* xdiff cannot cope with large files. these files should not be passed to
|
|
Packit |
ae9e2a |
* xdiff. callers should treat these large files as binary.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
#define GIT_XDIFF_MAX_SIZE (1024LL * 1024 * 1023)
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
/* A git_xdiff_output is a git_patch_generate_output with extra fields
|
|
Packit |
ae9e2a |
* necessary to use libxdiff. Calling git_xdiff_init() will set the diff_cb
|
|
Packit |
ae9e2a |
* field of the output to use xdiff to generate the diffs.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
typedef struct {
|
|
Packit |
ae9e2a |
git_patch_generated_output output;
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
xdemitconf_t config;
|
|
Packit |
ae9e2a |
xpparam_t params;
|
|
Packit |
ae9e2a |
xdemitcb_t callback;
|
|
Packit |
ae9e2a |
} git_xdiff_output;
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
void git_xdiff_init(git_xdiff_output *xo, const git_diff_options *opts);
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#endif
|