[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/nodegit/nodegit/v0.1.2/include/diff.h [Back]  [Original]

/**
 * 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 "nan.h"

#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 NAN_METHOD(New);

    static NAN_METHOD(TreeToTree);

    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 NAN_METHOD(TreeToIndex);
    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 NAN_METHOD(IndexToWorkdir);
    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 NAN_METHOD(TreeToWorkdir);
    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 NAN_METHOD(Merge);
    static NAN_METHOD(FindSimilar);
    static NAN_METHOD(StatusChar);
    static NAN_METHOD(NumDeltas);
    static NAN_METHOD(NumDeltasOfType);
    static NAN_METHOD(GetPatch);
    git_diff_list *raw;
};

#endif

Web Proxy Viewer  |  New URL  |  Original Page