/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITDIFF_H
#define GITDIFF_H
#include
#include
#include
#include "git2.h"
using namespace node;
using namespace v8;
class GitDiff : public ObjectWrap {
public:
static Persistent constructor_template;
static void Initialize (Handle target);
git_diff_list *GetValue();
private:
GitDiff(git_diff_list *raw);
~GitDiff();
static Handle New(const Arguments& args);
static Handle TreeToTree(const Arguments& args);
static void TreeToTreeWork(uv_work_t* req);
static void TreeToTreeAfterWork(uv_work_t* req);
struct TreeToTreeBaton {
uv_work_t request;
const git_error* error;
git_diff_list * diff;
Persistent repoReference;
git_repository * repo;
Persistent old_treeReference;
git_tree * old_tree;
Persistent new_treeReference;
git_tree * new_tree;
Persistent optsReference;
const git_diff_options * opts;
Persistent callback;
};
static Handle TreeToIndex(const Arguments& args);
static void TreeToIndexWork(uv_work_t* req);
static void TreeToIndexAfterWork(uv_work_t* req);
struct TreeToIndexBaton {
uv_work_t request;
const git_error* error;
git_diff_list * diff;
Persistent repoReference;
git_repository * repo;
Persistent old_treeReference;
git_tree * old_tree;
Persistent indexReference;
git_index * index;
Persistent optsReference;
const git_diff_options * opts;
Persistent callback;
};
static Handle IndexToWorkdir(const Arguments& args);
static void IndexToWorkdirWork(uv_work_t* req);
static void IndexToWorkdirAfterWork(uv_work_t* req);
struct IndexToWorkdirBaton {
uv_work_t request;
const git_error* error;
git_diff_list * diff;
Persistent repoReference;
git_repository * repo;
Persistent indexReference;
git_index * index;
Persistent optsReference;
const git_diff_options * opts;
Persistent callback;
};
static Handle TreeToWorkdir(const Arguments& args);
static void TreeToWorkdirWork(uv_work_t* req);
static void TreeToWorkdirAfterWork(uv_work_t* req);
struct TreeToWorkdirBaton {
uv_work_t request;
const git_error* error;
git_diff_list * diff;
Persistent repoReference;
git_repository * repo;
Persistent old_treeReference;
git_tree * old_tree;
Persistent optsReference;
const git_diff_options * opts;
Persistent callback;
};
static Handle Merge(const Arguments& args);
static Handle FindSimilar(const Arguments& args);
static Handle StatusChar(const Arguments& args);
static Handle NumDeltas(const Arguments& args);
static Handle NumDeltasOfType(const Arguments& args);
static Handle GetPatch(const Arguments& args);
git_diff_list *raw;
};
#endif