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

/**
 * This code is auto-generated; unless you know what you're doing, do not modify!
 **/

#ifndef GITTREE_H
#define GITTREE_H

#include 
#include 
#include 

#include "git2.h"

using namespace node;
using namespace v8;

class GitTree : public ObjectWrap {
  public:

    static Persistent constructor_template;
    static void Initialize (Handle target);

    git_tree *GetValue();

    static Handle New(void *raw);

  private:
    GitTree(git_tree *raw);
    ~GitTree();

    static Handle New(const Arguments& args);


    static Handle Oid(const Arguments& args);
    static Handle Size(const Arguments& args);
    static Handle EntryByName(const Arguments& args);
    static Handle EntryByIndex(const Arguments& args);
    static Handle EntryByOid(const Arguments& args);
    static Handle GetEntry(const Arguments& args);
    static void GetEntryWork(uv_work_t* req);
    static void GetEntryAfterWork(uv_work_t* req);

    struct GetEntryBaton {
      uv_work_t request;
      int error_code;
      const git_error* error;
      git_tree_entry * out;
      Persistent rootReference;
      git_tree * root;
      Persistent pathReference;
      const char * path;
      Persistent callback;
    };
    static Handle Builder(const Arguments& args);
    static Handle DiffTree(const Arguments& args);
    static void DiffTreeWork(uv_work_t* req);
    static void DiffTreeAfterWork(uv_work_t* req);

    struct DiffTreeBaton {
      uv_work_t request;
      int error_code;
      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 DiffIndex(const Arguments& args);
    static void DiffIndexWork(uv_work_t* req);
    static void DiffIndexAfterWork(uv_work_t* req);

    struct DiffIndexBaton {
      uv_work_t request;
      int error_code;
      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 DiffWorkDir(const Arguments& args);
    static void DiffWorkDirWork(uv_work_t* req);
    static void DiffWorkDirAfterWork(uv_work_t* req);

    struct DiffWorkDirBaton {
      uv_work_t request;
      int error_code;
      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;
    };
    git_tree *raw;
};

#endif

Web Proxy Viewer  |  New URL  |  Original Page